This project contains Terraform code to provision AWS infrastructure for a demo environment, including VPC, subnets, NAT gateway, and EKS cluster.
- Terraform >= 1.0
- AWS CLI configured with appropriate credentials
- An AWS account
-
Clone the repository:
git clone <your-repo-url> cd Infrafordemo
-
Initialize Terraform:
terraform init
-
Plan the deployment:
terraform plan -var-file="envs/dev/dev.tfvars" -
Apply the deployment:
terraform apply -var-file="envs/dev/dev.tfvars" -
Destroy the deployment:
terraform destroy -var-file="envs/dev/dev.tfvars"
main.tf- Root Terraform configurationmodules/- Reusable Terraform modules (VPC, EKS, etc.)envs/dev/dev.tfvars- Variable values for the dev environmentvariables.tf- Input variable definitions
- Do not commit your
terraform.tfstatefiles to version control. - Update the variable values in
envs/dev/dev.tfvarsas needed for your environment.
Feel free to expand this README with more details about your modules, variables, or