title: Static outbound IP for AWS ECS Fargate task
body: <p>I have a Docker container with a service which I want to run through AWS ECS with Fargate. Unfortunately the service I want to run needs to access an SFTP server of a partner where the IP needs to be whitelisted.</p>
  
  <p>My question is now: How is it possible to assign a <em>static IP</em> (IPv4) to a AWS ECS Fargate Task? I've already setup a VPC, the subnets, internet and NAT gateway and assigned them to each other. But the biggest problem I see is that for each execution of the task with Fargate a new ENI with an different IP is assigned.</p>
  
  <p>Would be great to get some help! :)  </p>