AWS VPC Explained with Terraform

Amazon Web Services (AWS) lets you build and run Virtual Private Clouds (VPCs) with different parts. VPCs are virtual networks that are separate from each other in the AWS cloud. They let you start resources like EC2 servers, RDS databases, and mor…


This content originally appeared on DEV Community and was authored by Rahul Wagh

Amazon Web Services (AWS) lets you build and run Virtual Private Clouds (VPCs) with different parts. VPCs are virtual networks that are separate from each other in the AWS cloud. They let you start resources like EC2 servers, RDS databases, and more.

In this lab session, we are gonna take a look on setting up following using Terraform -

  1. How to setup VPC?
  2. How to setup Subnet?
  3. How to setup Internet Gateway?
  4. How to setup NAT gateway?
  5. How to setup Route Table
  6. How to setup Elastic IP?

VPS

VPC, or Virtual Private Cloud, is a virtual network that is specific to your AWS account and keeps your resources separate and under your control. It is conceptually different from other VPCs, so you can set up your own IP address ranges, subnets, and routing tables.

Subnet

Subnet is a part of the IP address range for your VPC. Subnets can cross multiple Availability Zones (AZs), so you can spread out your resources to make sure they are always available and can handle problems.

Internet Gateway

Internet Gateway: A gateway that connects your VPC to the internet and can be scaled horizontally and used more than once.

NAT Gateway

NAT Gateway is a controlled network address translation (NAT) service that lets instances in a private area connect to the internet or other AWS services, but stops the internet from connecting to those instances.

Route Table:

Route Table A set of rules, called routes, that tells your VPC where to send network data.

*Elastic IP: *

Elastic IP: A public IPv4 address that is always the same and that you can link to an instance, a network device, or a NAT gateway. Elastic IPs help you keep track of your resources that are available to the public and let you remap numbers to other resources in case something goes wrong.

After making and setting these parts, your VPC will have public and private subnets, an Internet gateway for public access, a NAT gateway for private access, custom route tables, and Elastic IPs for static public addresses.

▬▬▬▬▬▬ ⭐️ Follow me ⭐️ ▬▬▬▬▬▬

Linkedin - https://www.linkedin.com/in/rahul-wagh/
Twitter - https://twitter.com/wagh_rahul

To learn more on DevOps visit - https://jhooq.com/


This content originally appeared on DEV Community and was authored by Rahul Wagh


Print Share Comment Cite Upload Translate Updates
APA

Rahul Wagh | Sciencx (2023-05-02T11:44:06+00:00) AWS VPC Explained with Terraform. Retrieved from https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/

MLA
" » AWS VPC Explained with Terraform." Rahul Wagh | Sciencx - Tuesday May 2, 2023, https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/
HARVARD
Rahul Wagh | Sciencx Tuesday May 2, 2023 » AWS VPC Explained with Terraform., viewed ,<https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/>
VANCOUVER
Rahul Wagh | Sciencx - » AWS VPC Explained with Terraform. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/
CHICAGO
" » AWS VPC Explained with Terraform." Rahul Wagh | Sciencx - Accessed . https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/
IEEE
" » AWS VPC Explained with Terraform." Rahul Wagh | Sciencx [Online]. Available: https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/. [Accessed: ]
rf:citation
» AWS VPC Explained with Terraform | Rahul Wagh | Sciencx | https://www.scien.cx/2023/05/02/aws-vpc-explained-with-terraform/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.