Warning
This article is functional but out of date.
AWS MRAP behind CloudFront no longer requires a Lambda@Edge function for signing requests. See the updated guide: Part 2 — Provisioning & Deploying the Multi-Region AWS Stack with Terraform and GitLab CI/CD , or use the standalone Terraform Registry module: edstuurman/mrap-static-site/aws .
I’ve been experimenting with Terraform for some time now. Once you understand what HCL can and cannot do, it becomes a genuinely enjoyable and worthwhile exercise.
For this project, I chose to store the Terraform state remotely in an S3 bucket, using S3 based locking as well.…