🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to AWS Notes
Topic #36

AWS Subnet and Access


Subnets and Network Access

Subnets let you organize resources within a VPC, while access control lists and security groups control what traffic can reach them.


Security Groups and Access Control Video

W3schools.com collaborates with Amazon Web Services to deliver digital training content to our learners.


Subnets

A subnet is a section of a VPC that groups resources with similar security or operational needs. Public and private subnets can communicate with each other through secure channels.

Public Subnets

Contain resources accessible from the internet, such as public websites.

Private Subnets

Contain resources only accessible through the private network, such as databases with customer data.


Network Traffic

Data travels across networks as packets. When a packet enters a VPC through an Internet Gateway, it must pass permission checks before entering a subnet: Who sent it? How will it communicate with the resources?


Access Control

Network Access Control Lists (ACLs)

ACLs are firewalls that control inbound and outbound traffic at the subnet level. Packets on the approved list pass through; others are denied.

ACLs use stateless packet filtering: they check each packet against rules but have no memory of previous requests.

Checking if the traveler is on the list and forgets

Image created by Amazon Web Services

See the AWS documentation on ACLs for more details.


Security Groups

Security Groups are firewalls that control traffic for specific EC2 instances. By default, they deny all inbound traffic and allow all outbound. You add rules to customize this behavior.

Security Groups use stateful packet filtering: they remember previous actions and allow return traffic automatically.

Firewall checks the access list and remembers

Image created by Amazon Web Services

See the AWS documentation on Security Groups for more details.


Configuration Overview

Both ACLs and Security Groups can be configured with custom rules for traffic control.

Overview of network setup

Image created by Amazon Web Services

Want to go beyond the notes?

Join CodingNow 2.0's AWS course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

AWS Subnet and Access – FAQs

Quick answers about learning AWS Subnet and Access in AWS.

This free note from CodingNow 2.0 explains AWS Subnet and Access in AWS — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every AWS topic on CodingNow 2.0, including AWS Subnet and Access, is 100% free with no signup required.
With focused practice, most students grasp AWS Subnet and Access in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now