No matter how I create an ec2 instance, I can't connect to it over it's public IP

0

I've created about 12 instances, using default settings, tweaking stuff, etc. No matter how I create my instance, it's not accessible from the internet. I've even put on security group to allow all traffic. I have until Monday to spin up a new instance as my old instance is being retired by amazon. I'm guessing the defaults no longer allow you to access your machine from the internet, but I can't find anything that tells me what to do.

pfworks
asked 2 years ago246 views
2 Answers
1
Accepted Answer

Hello,

Can you try to reach from the EC2 to the internet or even that option is not working ?

The Security groups are just one of the factors needed to enable access. There are multiple other parameters like NACL's, Public IP, Routing etc that need to be verified between the 2 environments before reaching to a conclusion. Have you checked the routing that is set ?

Assuming, you are trying to access the same from On-Premise over the internet, did you verify if Internet gateway is attached to the routing in the EC2 instance. Please verify the same or provide more information on how is the routing set up.

Link- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html

profile pictureAWS
SUPPORT ENGINEER
answered 2 years ago
profile pictureAWS
EXPERT
Chris_G
reviewed 2 years ago
  • I have no way to connect to the instance, so I can't initiate traffic from it. When I looked at the docs it said that if you use the default vpc, all the internet connectivity should be taken care of. I guess this may not be the case?

1

OK, that had nice clear steps. I went ahead and created my own VPC, subnet and gw and now it works. Thx.

pfworks
answered 2 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.

Guidelines for Answering Questions