Hi@akhtar,
Yes, you can configure multiple public subnets in a single AWS VPC. VPC is a virtual network dedicated to your AWS account. It is an isolated from the other virtual networks in the AWS Cloud.
When you create a VPC you specify the range of IPv4 addresses for the VPC in the form of Classless inter domain routing (CIDR) blocks.
For Example: 192.168.0.0/16 is the primary CIDR block for your VPC.
You can create 3 types of subnets in VPC:
-
Public Subnet: If a subnets traffic is routed to an internet gateway, the subnet is known as public subnet
-
Private Subnet: If a subnet doesn’t have a route to an internet gateway, the subnet is known as a private subnet.
-
VPN-Only Subnet: If a subnet doesn’t have a route to an internet gateway, but has its traffic routed to a virtual private gateway for a VPN connection. The subnet is known as the VPN-Only Subnet.
Total you can create 254 subnets according to the above given example.
Hope this will help.
Thank You