This repository provides a modular and customizable AWS network infrastructure using Terraform. It includes a VPC, Public & Private Subnets, NAT Gateway, VPN Gateway, Internet Gateway, and Security Groups for a scalable and secure cloud network.
- Configurable Variables: Easily modify CIDR blocks, regions, and availability zones.
- Public and Private Subnets: Network segmentation for security and control.
- Internet Gateway (IGW): Provides public internet access.
- NAT Gateway: Allows private instances to access the internet securely.
- VPN Gateway: Enables secure remote connectivity.
- Security Groups: Predefined rules for SSH and traffic control.
- Install Terraform: Download Terraform
- Install AWS CLI: AWS CLI Installation
- Configure AWS credentials:
aws configure
git clone https://github.com/aida-solat/Easy-Network-Design.git
cd Easy-Network-Designterraform initterraform planThis previews the resources that will be created.
terraform apply -auto-approveThis provisions the VPC, subnets, NAT gateway, VPN gateway, security groups, and internet access.
Check resources in AWS Console or use AWS CLI:
aws ec2 describe-vpcs
aws ec2 describe-subnets
aws ec2 describe-security-groupsTo remove all deployed resources:
terraform destroy -auto-approveModify variables.tf to customize the network settings:
variable "region" {
default = "us-west-2"
}
variable "vpc_cidr" {
default = "10.1.0.0/16"
}
variable "public_subnet_cidr" {
default = "10.1.1.0/24"
}
variable "private_subnet_cidr" {
default = "10.1.2.0/24"
}MIT License