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
demandé il y a 2 ans251 vues
2 réponses
1
Réponse acceptée

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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans
profile pictureAWS
EXPERT
Chris_G
vérifié il y a 2 ans
  • 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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions