How can I use a static or Elastic IP address for an Amazon ECS task on Fargate ?

0

My ecs task running with application load balancing and want to access access to global via NAT Gateway. Could you tell me how ?

Lunar
질문됨 9달 전449회 조회
1개 답변
1
수락된 답변

Hello.
The subnet where the ECS task is deployed should be a private subnet.
Also, make sure that there is a route to the NAT Gateway in the route table of the deployed subnet.
The configuration is similar to the following document.
https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/networking-outbound.html#networking-private-subnet

profile picture
전문가
답변함 9달 전
profile pictureAWS
전문가
검토됨 9달 전
  • Thanks for you answers, actually I also try a private subnet sir, It able to access to global via nat but the static ip still not get on ecs task

  • As described in this document, it is not possible to set an Elastic IP directly to a task. https://repost.aws/knowledge-center/ecs-fargate-static-elastic-ip-address
    In other words, if the destination has IP address restrictions or other restrictions, it is necessary to register to allow the NAT Gateway's IP address.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠