title: How do I get my IP address from inside an ECS container running with the awsvpc network mode?
body: <p>From a regular ECS container running with the bridge mode, or from a standard EC2 instance, I usually run </p>
  
  <pre><code>curl http://169.254.169.254/latest/meta-data/local-ipv4
  </code></pre>
  
  <p>to retrieve my IP.</p>
  
  <p>In an ECS container running with the awsvpc network mode, I get the IP of the underlying EC2 instance which is not what I want. I want the address of the ENI attached to my container. How do I do that?</p>