This repository contains the terraform code to create a simple AWS infrastructure. The infrastructure consists of a VPC, a public subnet, a private subnet, an internet gateway, a route table, a security group, an EC2 instance, and an S3 bucket.
The backend.tf
file is used to store the configuration for the backend. The backend is used to store the state file
The variables.tf
file is used to store the input variables. The input variables are used to parameterize the terraform code.
Refer to the Terraform documentation for installation instructions.
- Clone the repository
git clone
- Change into the directory
cd aws-terraform
- Initialize the working directory
terraform init
- Create an execution plan
terraform plan
- Apply the changes
terraform apply
- Destroy the infrastructure
terraform destroy
This project is open source and available under the MIT License.