Infrastructure built with Terraform in eu-central-1 (Frankfurt):
- VPC + Internet Gateway
- 2 public subnets (multi-AZ)
- Security Groups
- Launch Template (Ubuntu + nginx via user_data)
- Auto Scaling Group (ASG)
- Application Load Balancer (ALB) + Target Group + Listener (HTTP :80)
- Opened the ALB DNS and confirmed the custom page: “JovanOps Lab #2 — ASG behind ALB (Terraform)”
- Verified ASG behavior: terminating an instance triggers a replacement (Activity tab shows events).
terraform init
terraform fmt
terraform validate
terraform plan
terraform apply