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
gefragt vor 2 Jahren251 Aufrufe
2 Antworten
1
Akzeptierte Antwort

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-TECHNIKER
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
Chris_G
überprüft vor 2 Jahren
  • 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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen