Reputation: 3077
I have created the following resources:
xyz.local
A
record under Private Hosted Zone pointing to each EC2 Instance (ec21.xyz.local, ec22.xyz.local)Here is the output of my dig
command:
But when I do ping xyz.local
, I am not able to ping it.
As per my understanding, I should be able to ping it.
Please correct my understanding here and help me to understand what else I have missed.
Upvotes: 0
Views: 970
Reputation: 270104
Amazon EC2 instances only permit inbound access if there is a matching rule in a Security Group associated with the instance.
To allow incoming 'ping' request, you will need to add a rule that permits ICMP
traffic in the Inbound rules list:
This will allow the request to reach the instance. The instance will be able to return the response because Security Groups are stateful.
Upvotes: 1