Trust is earned, not given

A different perspective

2024-05-11 · Projects

Serverless at scale on AWS: three Terraform + Lambda scenarios

AwsSamples is sample code for large-scale web sites on AWS, organised as three self-contained scenarios — each with its own Terraform state, deploy script and README:

The mental model every scenario shares

Deploying one yourself

cd shopping
./lambdas/publish.ps1        # dotnet publish + zip each handler
cd terraform
terraform init
terraform plan -out plan.tfplan
terraform apply plan.tfplan

Prerequisites are Terraform 1.6+, the .NET 8 SDK and the AWS CLI. outputs.tf prints the endpoints when it finishes, and terraform destroy removes everything — which makes this a safe sandbox for learning.

Why single-region on purpose

The samples stay single-region so they stay readable; the README's hardening notes sketch the multi-region path (Route 53 failover, DynamoDB global tables, per-region state). Read the Terraform files top to bottom — they double as an architecture course, the same way the Azure Terraform article does for Microsoft's cloud.

Repository: github.com/bobhuang1/AwsSamples