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, 2020 in AWS by akhtar
• 38,260 points
2,605 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, 2020 by MD
• 95,460 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
• 58,020 points
1,058 views
0 votes
1 answer

How to create subnets in a vpc using boto3?

Here is the simple way of implementing ...READ MORE

answered Dec 5, 2018 in AWS by Shuvodip Ghosh
4,573 views
0 votes
1 answer

Unable to delete subnets in a VPC using boto3.

.terminate is used for instances and not ...READ MORE

answered Dec 5, 2018 in AWS by Shuvodip Ghosh
857 views
0 votes
2 answers

How to create a VPC in AWS?

There is another method i.e. creating an ...READ MORE

answered Feb 20, 2019 in AWS by Priyaj
• 58,020 points
1,234 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
• 58,020 points
2,151 views
0 votes
1 answer
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, 2020 in AWS by MD
• 95,460 points
2,768 views
+1 vote
1 answer

How to configure a Lambda function to access resources in a VPC?

Hi@akhtar, You can configure a Lambda function to ...READ MORE

answered Aug 27, 2020 in AWS by MD
• 95,460 points
2,168 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP