title: Cannot access instance metadata from within a FARGATE Task
body: <p>I have an AWS FARGATE Task that is running a relatively simple python application (with a Docker image built from python:3.6-stretch .)  It runs fine using Amazon EC2 Tasks (Where an EC2 host provides the docker container); but I'm trying to move these to FARGATE.</p>
  
  <p>When I deploy my images in Fargate and they attempt to get the local IPv4 data using the URL:</p>
  
  <p>'<a href="http://169.254.169.254/latest/meta-data/local-ipv4" rel="nofollow noreferrer">http://169.254.169.254/latest/meta-data/local-ipv4</a>'</p>
  
  <p>I get the error:</p>
  
  <pre><code>HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /latest/meta-data/local-ipv4 (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7f086aa8d438&gt;: Failed to establish a new connection: [Errno 22] Invalid argument',))
  </code></pre>
  
  <p>As a side note, my FARGATE container here is sitting on a private subnet ( there is a nat gateway configured and the instance(s) can get out to the internet) .  the IP space is 10.160.16.0/20 .</p>
  
  <p>The image is based on the python:3.6-stretch docker image.</p>
  
  <p>Is there something I need to do to get a FARGATE task to be able to access the link-local address?</p>
  
  <p>TIA!</p>