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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ