How to make your subnet public in your VPC ?
Dec 26, 2022
- You need to create and attach an Internet gateway to your VPC. This Internet gateway is a managed service, controlled, configured, and maintained by AWS.
- You need to add a default route (entry-point) to the route table associated with your subnet. The route could have a destination value of 0.0.0.0/0, and the target value will be set as your Internet gateway ID.
- Any instance that you’re required to communicate with external resources on the Internet and beyond, will require a public IP address.
- You’ll need to ensure that your public subnet NACL is not restricting or blocking expected ingress and egress traffic.