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 -
- How to setup VPC?
- How to setup Subnet?
- How to setup Internet Gateway?
- How to setup NAT gateway?
- How to setup Route Table
- 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
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.