This is a simple infrastructure demonstration using Terraform that creates:
- EC2 instance with Nginx web server
- Application Load Balancer (ALB)
- Security Group for HTTP access
- AWS CLI configured with appropriate credentials
- Create an S3 bucket for Terraform state storage
aws s3 mb s3://tf-showcase-state-yourname-123 --region us-west-1- Replace
yourname-123in main.tf S3 bucket name with your identifier - Run
terraform initto initialize the working directory - Run
terraform applyto create the infrastructure
Once complete, you can access the web server through the ALB URL shown in the Terraform output.
The web page will display:
- Infrastructure details
- Instance metadata
- Explanation of how Terraform works
This is a great conversation starter for discussing:
- Infrastructure as Code concepts
- AWS services
- Terraform usage
- Web server configuration
To remove all resources when you're done:
terraform destroy