Creation of VPC and Subnet

 VPC (Virtual Private Cloud)

Amazon VPC is the networking layer for Amazon EC2. VPC is a virtual network dedicated to your AWS account. A Subnet is a range of IP address in the VPC.

Creating a VPC:

  • Login to AWS with valid credentials
  • Click on Services and type VPC in the search field.
  • Click on Create VPC
  • Give a Name Tag. For Exp: DemoVPC
  • Enter respective value in IPv4 CIDR block field. For Exp : 10.0.0.0/24. For more information, please navigate to here.
  • Click on Create button.

      Subnet

    At a high level, you can think of a VPC in AWS as a logical container that separates resources you create from other customers within the Amazon Cloud. It is you defining a network of your own within Amazon. You can think of a VPC like an apartment where your furniture and items are analogous to databases and instances. The walls of your apartment isolate and protect your things from being accessible from other tenants of the apartment complex.

    Subnets would then be analogous to the different rooms in your apartment. They are containers within your VPC that segment off a slice of the CIDR block you define in your VPC. Subnets allow you to give different access rules and place resources in different containers where those rules should apply. You wouldn't have a big open window in your bathroom on the shower wall so people can see you naked, much like you wouldn't put a database with secretive information in a public subnet allowing any and all network traffic. You might put that database in a private subnet (i.e. a locked closet).


Comments

Popular posts from this blog

Github Copilot - Purposes and Features

Creation of Route Table, Internet Gateway and Security Groups