Resource Map

Infrastructure templates

Common AWS architectures with every connection explained, each with its own Terraform. Open one in the editor, adapt it, and the Terraform follows the diagram.

Secure web platform

Full production layout: SPA on S3 + CloudFront, API on ECS Fargate behind an ALB in private subnets across two AZs, Multi-AZ RDS, SES email, WAF, ACM, Secrets Manager, KMS, ECR and CloudWatch.

  • Users (internet)
  • Amazon S3
  • Amazon Route 53
  • Amazon CloudFront
  • AWS WAF
  • AWS Certificate Manager
  • Internet Gateway
  • Application Load Balancer
  • NAT Gateway
  • Amazon ECS
  • Amazon RDS
  • AWS Secrets Manager
  • Amazon SES
  • Amazon ECR
  • Amazon CloudWatch
  • AWS KMS

Serverless REST API

API Gateway behind WAF with a custom domain, Lambda functions in private subnets across two AZs, DynamoDB through a gateway endpoint and KMS encryption.

  • Users (internet)
  • Amazon Route 53
  • Amazon API Gateway
  • AWS WAF
  • AWS Certificate Manager
  • AWS Lambda
  • Amazon DynamoDB
  • AWS KMS
  • Amazon CloudWatch

Static website

S3 behind CloudFront with WAF, an ACM certificate and origin access control. No VPC is needed: nothing runs servers, and the bucket is never public.

  • Users (internet)
  • Amazon Route 53
  • Amazon CloudFront
  • AWS WAF
  • AWS Certificate Manager
  • Amazon S3
  • AWS KMS
  • Amazon CloudWatch

Async order processing

Accept work fast, process it in the background in private subnets, fan out events and email customers. Queues and topics are KMS-encrypted.

  • Users (internet)
  • Amazon Route 53
  • Amazon API Gateway
  • AWS WAF
  • AWS Certificate Manager
  • AWS Lambda
  • Amazon SQS
  • Amazon SNS
  • Amazon DynamoDB
  • Amazon SES
  • AWS KMS
  • Amazon CloudWatch

Three-tier web app

Internet-facing ALB in public subnets, containers in private subnets with NAT egress, Multi-AZ RDS and Redis in isolated data subnets, secrets and KMS.

  • Users (internet)
  • Amazon Route 53
  • AWS WAF
  • AWS Certificate Manager
  • Internet Gateway
  • Application Load Balancer
  • NAT Gateway
  • Amazon ECS
  • Amazon RDS
  • Amazon ElastiCache
  • AWS Secrets Manager
  • AWS KMS
  • Amazon CloudWatch

Event bus integration

Services in private subnets publish domain events to EventBridge; rules route them to consumers that archive, email and audit, all encrypted with KMS.

  • AWS Lambda
  • Amazon EventBridge
  • Amazon SQS
  • Amazon CloudWatch
  • Amazon S3
  • Amazon SES
  • AWS KMS