Skip to content

api endpoint ec2.us-east-2.amazonaws.com resolving into internal vpc addr

0

my aws cli hangs when I trying to run a simple command like describe-instances
and it perfectly works when I run same commands for instances in other region.

after researching I see what api endpoint ec2.us-east-2.amazonaws.com resolving into internal vpc address 10.10.x.x

 
nslookup ec2.us-east-2.amazonaws.com
Server:         10.10.0.2
Address:        10.10.0.2#53

Non-authoritative answer:
Name:   ec2.us-east-2.amazonaws.com
Address: 10.10.2.119
Name:   ec2.us-east-2.amazonaws.com
Address: 10.10.3.68
Name:   ec2.us-east-2.amazonaws.com
Address: 10.10.1.103

But I unable to reach that endpoint even from the instance in the same network
security groups are open to all outgoing traffic. vpc acl's also open
I have no idea how to fix it

asked 7 years ago418 views
1 Answer
0

So the issue was:
I've used third-party tarraform module for vpc creation.
and it enabled ec2 vpc endpoint with aws service category and type interface, and associated default vpc SG with it.
since default vpc subnet allowing access from itself only :) I need to attach default vpc SG to instances or disable ec2 vpc endpoint (I decided to disable it).

thank you.

answered 7 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.