title: Problematic AWS CLI within EC2 - Could Not Connect to EndPoint
body: <p>AWS CLI is problematic from within an EC2 instance.
  I am on an EC2 Instance via Putty as well as Windows PowerShell (at different times). Command is: aws ec2 describe-instances</p>
  
  <p>Result &amp; error is:</p>
  
  <p>Hanging and Could not connect to the endpoint URL: "<a href="https://ec2.us-east-1.amazonaws.com/" rel="nofollow noreferrer">https://ec2.us-east-1.amazonaws.com/</a>"</p>
  
  <p>The AWS CLI command is OK and correctly replies w json output when the CLI command executed from my <em>local windows command prompt.</em></p>
  
  <p>'aws configure' seems OK with the region is us-east-1</p>
  
  <p>The EC2 instance can ping 8.8.8.8 as well as another instance (in same VPC, SubNet, region, etc) with a public IP.</p>
  
  <p>I think I allowed everything open in the Security Groups (for troubleshooting purposes):
  <a href="https://i.stack.imgur.com/bioN7.png" rel="nofollow noreferrer">img of the security group</a></p>
  
  <p>Network ACLs also left alone:
  <a href="https://i.stack.imgur.com/TONpc.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>These are new and blank EC2 instances.  To also note: 'sudo yum update' also returns an error of:
  Could not retrieve mirrorlist <a href="http://repo.us-east-1.amazonaws.com/latest/main/mirror.list" rel="nofollow noreferrer">http://repo.us-east-1.amazonaws.com/latest/main/mirror.list</a> error was
  12: Timeout on <a href="http://repo.us-east-1.amazonaws.com/latest/main/mirror.list" rel="nofollow noreferrer">http://repo.us-east-1.amazonaws.com/latest/main/mirror.list</a>: (28, 'Resolving timed out after 5515 milliseconds')</p>
  
  <p>Thought I have all connections open (for sake of troubleshooting). Possible clue: Read elsewhere that <em>my internet connection</em> has to be "legit." I am using a free hotel wifi.  But this doesnt make sense as its the EC2 doing the pinging, and my windows cmd can return results.  </p>
  
  <p>Thank you very much.
  -Martin</p>