How to configure hostname in ECS Fargate task definition

前端 未结 4 1831
攒了一身酷
攒了一身酷 2021-02-08 21:42

We are migrating from ECS to Fargate. In ECS, we could set the hostname in the task definition like this:
\"hostname\": \"%HOST_NAME%\"

It fails to create with the e

4条回答
  •  耶瑟儿~
    2021-02-08 22:33

    AWS documentation says The hostname parameter is not supported if using the awsvpc networkMode. Anything but awsvpc is not supported with FARGATE, therefore there is no way to set hostname in task definition with FARGATE launch type.

提交回复
热议问题