How would you investigate why an EC2 instance cannot communicate with another EC2 instance?
The fastest way to diagnose EC2 communication failures is to check security groups, NACLs, routing tables, and OS firewalls in that order, then test connectivity with tools like
ping, curl, or telnet