Sheet 02 / 06
Terraform AWS Platform Foundation
Reproducible, secure AWS infrastructure foundations: Terraform, remote state, federated OIDC authentication and least privilege.
- Status
- In development
- Type
- Independent project · Platform engineering
Architecture
Problem
A platform on AWS needs a foundation you can reproduce and audit: infrastructure defined as code, shared and secured state, and pipelines that authenticate without long-lived credentials.
Architecture
- Infrastructure managed with Terraform, with remote state in an S3 backend.
- CI/CD on GitHub Actions, authenticating to AWS through GitHub OIDC (federated authentication).
- Least-privilege IAM for access control.
Status
In development. Its value is in applying platform engineering and cloud automation practices: reproducibility, security and access control.
The architecture is built in phases. Phase 1 (bootstrap with the GitHub OIDC provider, the ci-terraform-plan IAM role and an S3 backend with remote state): closed. Phase 2: the VPC module and the network stack (subnets, Internet Gateway, NAT and S3 endpoint) were applied and cleanly destroyed; the compute stack (EC2 with SSM access) and the data stack (S3 and DynamoDB) are written but not applied, and the integrated apply is still pending. Multi-region Transit Gateway, multicloud (Azure, GCP and Docker) and a showcase are an aspirational vision, not committed scope.
Stack
- Terraform
- AWS
- S3 backend
- IAM
- GitHub Actions
- GitHub OIDC
- CI/CD