title: Docker instance running on private subnet AWS Fargate
body: <p>My VPC consists of 2 public and 2 private subnets, private subnet having NAt gateway to access internet and my docker instance is running on private subnet which receives external URLs (<a href="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" rel="nofollow noreferrer">http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4</a>)  as input and download content/file and store the files in s3 </p>
  
  <p>I have application load balancer setup in public subnet and connects to fargate instance</p>
  
  <p>when i try to run and the logs say
  NAME cannot be resolved commondatastorage.googleapis.com</p>
  
  <p>I understand that docker is not having internet connection</p>
  
  <p>What i am doing wrong here and what needs to corrected?</p>
  
  <p>PS: While creating the fargate service I DISABLED Auto Assign Public IP as instance should be on private subnet</p>