Thttps://acloudguru.com/blog/engineering/troubleshooting-ec2-connectivity-issues is one of the most important skills you can have because it allows you to take your environment to the next level. I like to think of a network as a stream that flows into bigger rivers.
Within your network, security groups, NACLs and routeables act like dams and debris causing water to flow in specific directions.
They control inbound and outbound rules for your environment that allow traffic to flow either in or out of your environment.
Assuming the connection isn’t having any issues from outside sources, your NACLs and security groups control what traffic flows through your environment.