AWS Terraform ECS Fargate, RDS, GitHub Actions OIDC
- Two AWS environments, one codebase, zero stored keys
- Terraform builds a two AZ VPC, ECS Fargate behind an ALB and private RDS PostgreSQL for staging and prod, only tfvars differ
- GitHub Actions authenticates with OIDC, runs fmt, validate, tflint and checkov, then plans and applies
- Staging was created from nothing in under 10 minutes and destroyed again, with the run logs as proof
- Infracost: $93/month staging, $236 prod
- Terraform
- AWS
- Amazon ECS
- GitHub Actions
$ git clone https://github.com/joheee/AwsEcsFoundationTerraform.git