For Security reson EC2 instance disable the ICMP. This ICMP to prevent ping requests. Because of this when pinging the EC2 instance domain names or their associated IP addresses we'll receive a "Request timed out." or "100% packet loss responce "
For solve this issue you have to edit the 'Security Group' to which your EC2 instance and allow access. By default everything is denied so we need to edit the inbound rules and add new custom ICMP rule.
Type: All ICMP
Port range: 0 - 65535
Source: Anywhere - 0.0.0.0/0