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.

  • Terraform
  • Terragrunt
  • EKS
  • Helm
  • Aurora
  • OpenSearch
  • DynamoDB
  • Lambda
  • IRSA

// 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

Terraform Platform: EKS, Aurora, OpenSearch, DynamoDB and Lambda flow1. Terragrunt → 2. VPC module → 3. EKS module → 4. IRSA → 5. Load balancer controller → 6. Data stores → 7. Serverless → 8. Workloads01Terragrunt02VPC module03EKS module04 · GATEIRSA05Load balancercontroller06Data stores07Serverless08Workloads
  1. Terragruntremote state, per-environment variables
  2. VPC modulenetwork foundation
  3. EKS modulecluster, workers, worker policy
  4. IRSA gatepod role bound through an annotated service account
  5. Load balancer controllerinstalled via Terraform Helm release
  6. Data storesAurora, OpenSearch with access policy, DynamoDB
  7. ServerlessVPC Lambda with its own security group and role
  8. 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.

// Related