EC2 instance is not reachable by public IP

0

Hey guys,

I understand there is a million questions like this every day. However mine is different. I did not change a thing in my account. All VPC resources were created by Amazon. I tried all troubleshooting tutorials I could find to no avail. I tried launching instances in 3 different regions - same result. Again I did not create/configure any of the VPC stuff, the instance is launched into a default VPC, default subnet and SG is default too.

Thanks,
Denis

질문됨 4년 전8829회 조회
2개 답변
0
수락된 답변

Hi Denis,

It is expected that you would not be able to reach instance over its public IP with default settings.

default security group associated to the instance, allow inbound traffic from network interfaces (and their associated instances) that are assigned to the same security group.

[+]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html#DefaultSecurityGroup

Therefore, to access instance over its public IP from your source machine, please add inbound rules to the security group.

To access windows instances:
[+]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/authorizing-access-to-an-instance.html#add-rule-authorize-access

To access linux instances:
[+]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html#add-rule-authorize-access

I hope this helps.

답변함 4년 전
profile picture
전문가
검토됨 10달 전
0

Oh, man. It's so simple it's embarrassing. Thank you very much!

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠