EC2 Instance Will not connect to internet
From Cramsession
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
Check the Following
Internet Gateway
- Check the subnet has an Internet gateway
- Check the internet gateway is associated with the subnet
- This will make the subnet a public subnet.
- You will not need a NAT gateway if this is a public subnet.
Check the NACL
- Remember the NACL is stateless
- Make sure you have a rule to allow:
- All traffic outbound
- All traffic inbound
- If you want to harden the subnet after this change, then revert back to only the needed traffic.
- Overley permissive NCAL could result in the exfiltration of data