In today's task:
Create one subnet named devops-subnet under default VPC.
Todo:- Create the resources only in
us-east-1region.
----------------------------------------------
Steps followed:
- Open VPC Service
- Find Default VPC
- Click on: Create Subnet
- Fill details: Select the default VPC
- Availability Zone: us-east-1a
- Fill IPv4 Subnet CIDR block
- Click Create Subnet button to create subnet.
----------------------------------------------
What is Subnet?
A Subnet (sub-network) is a smaller network created inside a larger network called a VPC (Virtual Private Cloud).
A Subnet (sub-network) is a smaller network created inside a larger network called a VPC (Virtual Private Cloud).
The VPC is the whole private cloud network.Subnets divide that network into smaller logical sections.
Why are subnets are required?
Without subnets:
Without subnets:
- everything sits in one flat network
- security becomes difficult
- traffic management becomes messy
- scaling becomes hard
Subnets help with:
- security
- isolation
- organization
- routing
- scalability
Types of Subnets
- Public Subnet
A subnet connected to the internet.
Usually contains:
- Web servers
- Load balancers
- Bastion hosts
Example: Nginx, Apache, React frontend. These need internet access.
- Private Subnet
No direct internet access.
Usually contains:
- Databases
- Backend APIs
- Internal services
Why?
Because databases should NOT be publicly reachable.
Because databases should NOT be publicly reachable.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article