title: Unable to curl my EC2 instance to get my EC2 instance information
body: <p>I am trying to follow these <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html" rel="nofollow noreferrer">Instance Metadata and User Data</a> documentation.</p>
  
  <p>I am trying to curl my EC2 instance but for some reason it give me connection refused. I have allowed incoming requests for <code>HTTP</code> and <code>SSH</code>, and allowed all traffic for outgoing traffic in my security group. I am able to <code>ssh</code> in its but unable to <code>curl</code>.</p>
  
  <p>What am I missing?</p>