Cannot ping AWS EC2 instance

Question

I have an EC2 instance running in AWS. When I try to ping from my local box it is not available.

How can I make the instance pingable?

Answer

Add a new EC2 security group inbound rule:

  • Type: Custom ICMP rule
  • Protocol: Echo Request
  • Port: N/A
  • Source: your choice (I would select Anywhere to be able to ping from any machine)

Can't push image to Amazon ECR - fails with 'no basic auth credentials'

Change key pair for ec2 instance