Skip to content
guidePhase: ReleasePlatformGuide 9 of 16

Roles: devops sre · architect

Guide: Runtime on AWS ​

Decision: Where application workloads run and how they're exposed.

Related: ARCHITECTURE.md · identity-access-secrets.md


Compute ​

OptionProsCons
ECS FargateNo cluster nodes to manage; good defaultLess K8s ecosystem
EKSPortable K8s; rich ecosystemOperational overhead; cost
LambdaPay per use; great for event/API thin layersCold start; duration limits
EC2 (self-managed)Full controlPitfall: you operate the fleet
App RunnerSimple container deployLess control for complex networking

Recommended: Fargate for most services; Lambda for event-driven and low-traffic APIs; EKS only when K8s is org mandate.


API exposure ​

OptionProsCons
ALB + ECSFlexible; WebSocketsYou manage routing rules
API Gateway + LambdaThrottling, auth built-inCost at high RPS
API Gateway + VPC Link + ALBCentral auth + container backendComplexity
CloudFront + WAF frontEdge caching and protectionCache invalidation discipline

Data stores (common patterns) ​

NeedOptionsPitfall
RelationalRDS Aurora, RDS PostgreSQLPublicly accessible RDS
Key-value / scaleDynamoDBWrong access patterns → cost
CacheElastiCache RedisCache as source of truth
ObjectS3Public bucket ACLs
Search (app)OpenSearchConfusing with ADR index — separate domains

AI services on AWS ​

ServiceUsePitfall
BedrockAgents, batch, planningUngoverned model access per team
Amazon QDeveloper AWS assistNot a runtime for customer-facing AI
SageMakerCustom modelsOverkill for codegen assist

Keep customer-facing AI architecture in ADRs separate from developer tooling AI.


Pitfalls ​

PitfallWhy it hurtsMitigation
EKS by defaultCost and complexity without needADR required for EKS
Lambda for everything15-min limit; debugging painDomain-driven split
Hardcoded credentialsAI generates AKIA... in samplesSecrets Manager + lint — see Identity guide
Single AZAZ outage = outageMulti-AZ ADR for T1
No WAF on public APIsOWASP exposureWAF + rate limits
AI suggests wrong servicee.g. self-hosted Kafka vs EventBridgeADR corpus + Q guardrails

VPC → private subnets → ECS Fargate behind ALB → RDS/DynamoDB as fit → API Gateway where edge auth needed → Bedrock via VPC endpoint for internal agents.


Reference template only — no production code. Adapt in your own project.