Skip to content

Terraform for AWS production#9

Merged
ParanormalRave merged 2 commits into
devfrom
mbata-blessing-adaoma
Apr 26, 2026
Merged

Terraform for AWS production#9
ParanormalRave merged 2 commits into
devfrom
mbata-blessing-adaoma

Conversation

@ParanormalRave

Copy link
Copy Markdown

Terraform for the AWS production version: VPC, ECS, RDS (replacing local Postgres), ElastiCache (replacing local Redis), ALB, security groups, IAM roles.

AdaomaB added 2 commits April 24, 2026 09:31
- VPC with public/private subnets, IGW, NAT gateway
- Security groups for ALB, ECS tasks, RDS, ElastiCache
- Application Load Balancer with listeners for vote (80) and result (8080)
- ECS Fargate cluster with task definitions and services for vote, result, worker
- RDS Postgres replacing local db container
- ElastiCache Redis replacing local redis container
- IAM roles for ECS task execution and task permissions
- CloudWatch log groups for container logging
- Updated app source to read connection hostnames from env vars
- CPU utilization alarms for vote and result ECS services
- Database connection count alarm for RDS
- CPU utilization alarm for ElastiCache Redis
- All alarms configured with 2-minute evaluation period and appropriate thresholds
@ParanormalRave ParanormalRave merged commit 5ea756f into dev Apr 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants