Can we configure multiple public subnets in a single AWS VPC?

0 votes

Hi everyone,

I configured one subnet in my own VPC. Can I configure more than one public or private subnets in my VPC? Is it secure?

Thank You

Mar 18 in AWS by akhtar
• 4,500 points
97 views

1 answer to this question.

0 votes

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:

  1. Public Subnet: If a subnets traffic is routed to an internet gateway, the subnet is known as public subnet

  2. Private Subnet: If a subnet doesn’t have a route to an internet gateway, the subnet is known as a private subnet.

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

answered Mar 18 by MD
• 8,870 points

Related Questions In AWS

0 votes
1 answer

How to create subnets in a VPC in AWS Console?

To create a subnet inside a VPC ...READ MORE

answered Feb 11, 2019 in AWS by Priyaj
• 57,530 points
47 views
+5 votes
2 answers

Can we export/migrate users from AWS cognito, does it cause vendor lock-in?

Cognito actually has the capability to import ...READ MORE

answered Aug 1, 2018 in AWS by bug_seeker
• 15,390 points
1,508 views
+1 vote
1 answer

Can we use AWS Public DNS as Domian name to enable https on our instance

I don't believe you can get a ...READ MORE

answered Aug 23, 2018 in AWS by Priyaj
• 57,530 points
78 views
0 votes
1 answer

How can I disable a user's password in AWS using boto3

delete_login_profile is the one you should use if ...READ MORE

answered Sep 27, 2018 in AWS by Priyaj
• 57,530 points
657 views
+3 votes
2 answers

AWS VPN architecture diagram creation.

Yes you can go ahead and use ...READ MORE

answered Jul 13, 2018 in AWS by Priyaj
• 57,530 points
353 views
0 votes
1 answer
0 votes
1 answer

Why do we need to create our own VPC in AWS?

Hi@akhtar, Yes, in AWS you will get one ...READ MORE

answered Mar 18 in AWS by MD
• 8,870 points
90 views
0 votes
1 answer

not able to delete a security group for my Amazon VPC in AWS?

Hi@akhtar, When you try to delete that security ...READ MORE

answered Mar 18 in AWS by MD
• 8,870 points
111 views