Skip to content
>GLB_
Go back

Enabling Internet Access for Resources in a Public Subnet

When deploying resources in a public subnet within an AWS Virtual Private Cloud (VPC), you need to configure several components to allow them to communicate with the internet. Below are the essential steps:

1. Attach an Internet Gateway (IGW)

An Internet Gateway (IGW) enables communication between instances in your VPC and the internet. To set up an IGW:

2. Update the Route Table

For your public subnet to send traffic to the internet, you must modify the associated Route Table:

3. Allocate and Associate an Elastic IP (EIP)

If you require a persistent public IP address for your instance, you should:

4. Configure Security Groups

Ensure that your Security Groups allow the necessary inbound and outbound traffic:

5. Verify Network ACLs

Network ACLs act as a firewall controlling traffic in and out of your subnet. Ensure:

By following these steps, you ensure that resources in your public subnet can communicate with the internet securely and efficiently.

For more details, refer to the AWS documentation:


Share this post:

Previous Post
Visualizing EXPLAIN ANALYZE in PostgreSQL
Next Post
Network Address Translation (NAT): Overcoming IPv4 Shortages