DEV Community 👩‍💻👨‍💻

How to make your subnet public in your VPC ?

  1. 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.

  2. 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.

  3. Any instance that you're required to communicate with external resources on the Internet and beyond, will require a public IP address.

  4. You'll need to ensure that your public subnet NACL is not restricting or blocking expected ingress and egress traffic.

Top comments (0)

DEV has this feature:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. 🛠