Infrastructure Setup Guidelines
Core Technology Stack
- •Cloud Provider: AWS
- •Compute: ECS (Elastic Container Service) using EC2 Launch Type (preferred over Fargate for this user).
- •Infrastructure as Code: Terraform.
- •Secrets Management: AWS Systems Manager Parameter Store.
- •CI/CD: GitHub Actions.
Terraform Guidelines
- •Use modular structure for reusable components.
- •Store state remotely (e.g., S3 backend).
- •Retrieve all secrets and sensitive configuration from AWS SSM Parameter Store. Do not fallback to local
.envfiles for production.
ECS & EC2 Configuration
- •Prefer ECS on EC2 for cost/performance control.
- •Ensure autoscaling is configured for both the ECS Services and the underlying EC2 Auto Scaling Groups.
Deployment Workflow
- •All deployments must be automated via GitHub Actions.
- •Workflows should include:
- •Linting & Testing (Terraform fmt/validate, Go test).
- •Building Docker images.
- •Pushing to ECR.
- •Updating ECS Services (force new deployment).