1. Allow ICMP ping request in Windows FirewallOpen Windows Firewall and enable ALL ICMP V4 inbound rule, blow is an example from Windows Server 2012r2:
netsh advfirewall firewall add rule name="ALL ICMP V4" protocol=icmpv4:8,any dir=in action=allow
2. Add inbound rule to Security Group of EC2Let open the Secuirty Group of your instance on EC2, then add new inbound rules (Custom ICMP Rule / Echo Request) for your specific IP addresses (not recommend to allow all IP addresses), see below for example:
Now you can ping to your instance.
Welcome any comments and questions.