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
已提問 2 年前檢視次數 251 次
2 個答案
1
已接受的答案

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
支援工程師
已回答 2 年前
profile pictureAWS
專家
Chris_G
已審閱 2 年前
  • 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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南