Terraform Multi-Environment AWS Infrastructure
Create scalable multi-environment AWS infrastructure using Terraform modules.
Prompt (feel free to adjust it):
Build a comprehensive Terraform configuration for multi-environment AWS infrastructure supporting dev, staging, and production. Include: 1) Modular Terraform structure with reusable components, 2) VPC setup with public/private subnets across multiple AZs, 3) EKS cluster configuration with node groups and RBAC, 4) RDS setup with read replicas and automated backups, 5) ElastiCache Redis cluster for session management, 6) Application Load Balancer with SSL termination, 7) CloudWatch monitoring and alerting rules, 8) S3 buckets with proper versioning and lifecycle policies, 9) IAM roles and policies following least privilege principle, 10) Terraform state management with remote backend and state locking.
Use Cases
- Enterprise cloud infrastructure
- Multi-environment deployment automation
- Infrastructure compliance and governance