This folder contains all the Terraform configuration files for the hands-on project.
- provider.tf - AWS provider configuration
- variables.tf - Input variables
- main.tf - Main infrastructure resources (Security Group + EC2 Instance)
- outputs.tf - Output values
- Copy all .tf files to a new folder on your computer
- Open terminal/command prompt in that folder
- Run:
terraform init - Run:
terraform plan - Run:
terraform apply - Type
yeswhen prompted - Wait 2-3 minutes, then visit the URL shown in the output
Run: terraform destroy
Type yes when prompted
- Terraform installed
- AWS account
- AWS credentials configured (run
aws configure)
For complete step-by-step instructions, see the main project guide document.