AWS Terraform Platform
A small AWS platform in Terraform, planned, reviewed and deployed from GitHub Actions without any stored AWS keys.
What I built
- Modules for a VPC, a Lambda service behind a function URL, and an optional ECS Fargate service behind an ALB.
- Remote state in S3 with native locking, and two IAM roles: a read-only one for plans and a scoped one for apply.
- GitHub Actions that sign in through OIDC. Pull requests run fmt, validate, TFLint and Trivy, then post the plan as a comment.
- Apply and destroy run by hand, only from main, and only after a reviewer approves them in a protected environment.
- Defaults are cost-aware: no NAT gateway, and the ALB and Fargate stack sits behind a switch.
Status and limits
Applied end to end on a real AWS account, and the Lambda page it created is served from AWS. Not yet tested: the destroy workflow and the ECS and ALB stack. Trivy reports findings without failing the build, and the apply role is limited by service, not by individual resource.
A problem I hit
GitHub now puts the owner and repository IDs into the OIDC token subject for newer repositories. Without both IDs in the bootstrap, the IAM trust policies never match and every workflow run is rejected.
Built with
Terraform, AWS (IAM, S3, VPC, Lambda), GitHub Actions, OIDC, TFLint, Trivy







