Cloud / IaC · Freelance
Terraform Platform: EKS, Aurora, OpenSearch, DynamoDB and Lambda
Reusable Terraform modules compose a VPC, EKS with ALB ingress, Aurora, OpenSearch, DynamoDB, S3 and a VPC-attached Lambda, with IRSA pod roles and Terragrunt remote state.
// Overview
A modules directory (vpc, eks, aurora, search, dynamodb, s3, lambda) is wired together by root files. EKS uses the community module plus worker and pod IAM policies and a Helm release for the load balancer controller. Data stores have dedicated security groups and parameter groups. Terragrunt configures remote state and per-environment variables.
// The problem
A data-driven application needed a full AWS backend provisioned repeatably across environments.
// Flow
- Terragruntremote state, per-environment variables
- VPC modulenetwork foundation
- EKS modulecluster, workers, worker policy
- IRSA gatepod role bound through an annotated service account
- Load balancer controllerinstalled via Terraform Helm release
- Data storesAurora, OpenSearch with access policy, DynamoDB
- ServerlessVPC Lambda with its own security group and role
- Workloadsdeployments, services and ingress
// Design decisions & guardrails
- Module per service; per-service security groups.
- IRSA instead of node-wide credentials.
- Random suffixes for globally unique names; DRY environments via Terragrunt.
// Outcome
One repeatable pattern across dev, test and production.