This repository contains Terraform scripts to provision a variety of AWS infrastructure components, including VPC, EC2 instances, RDS, IAM roles, Security Groups, Elastic IPs, and CloudWatch alarms.
vpc/
: Contains scripts to create a Virtual Private Cloud (VPC) with subnets.ec2/
: Contains scripts to launch EC2 instances.rds/
: Contains scripts to set up RDS instances.iam/
: Contains scripts to create IAM roles and policies.security_groups/
: Contains scripts to configure Security Groups.elastic_ip/
: Contains scripts to allocate and associate Elastic IPs.cloudwatch/
: Contains scripts to set up CloudWatch alarms.
-
Initialize Terraform:
terraform init
-
Plan the Infrastructure:
terraform plan
-
Apply the Configuration:
terraform apply
You can customize the infrastructure by modifying the values in variables.tf
.
The output values of the Terraform run, such as instance IDs, public IPs, etc., are defined in outputs.tf
.
This project is licensed under the MIT License.