Skip to content

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

Terraform AWS Platform Foundation architecturePhased architecture. Phase 1, closed: the bootstrap with the GitHub OIDC provider, the ci-terraform-plan IAM role and the S3 backend with remote state. Phase 2: the VPC, subnets with NAT and the S3 endpoint were applied and cleanly destroyed; the EC2 stack with SSM access and the data stack (S3 and DynamoDB) are written but not applied. Aspirational vision, not committed scope: multi-region Transit Gateway, multicloud with Azure, GCP and Docker, and a portfolio showcase.PHASE 1OIDC providerGitHubclosedIAM roleci-terraform-planclosedS3 backendremote stateand lockingclosedPHASE 2VPC10.0.0.0/16us-east-1 · 3 AZvalidatedSubnetspublic and privatewith NATvalidatedS3 GatewayEndpointS3 withoutgoing through NATvalidatedEC2 and dataSSM · S3 + DynamoDBstacks writtennot appliedVISIONTransit Gatewaymulti-regionaspirationalAzure, GCPand DockermulticloudaspirationalPortfolioshowcaseaspirational
Swipe horizontally to see the full diagram. Component map based on what is documented. Arrows show stage order or fallback, not an execution sequence. Solid line: implemented or validated; dashed line: target, proposed or design-only.

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