Implementing customer managed keys for AWS Lambda durable functions with Terraform
Compute Blog
This article demonstrates how to implement customer-managed AWS KMS keys for encrypting AWS Lambda durable function execution data in a payment processing workflow using Terraform.
- AWS Lambda durable functions automatically checkpoint execution state to durable storage, requiring encryption controls for regulated workloads
- Customer-managed KMS keys enable key rotation scheduling, decryption access restrictions, and per-function audit trails in CloudTrail
- Reference architecture uses DynamoDB, EventBridge Pipes, Lambda durable functions, and SQS for event-driven payment processing
- Step-by-step deployment guide includes Terraform infrastructure provisioning, KMS key configuration, and Lambda function setup
- Durable execution data remains encrypted throughout function lifetime; key deletion or policy changes only affect new executions
- CloudTrail logs track all KMS operations including dry-run validation calls when configuring customer-managed keys
The solution provides a deployable reference architecture for regulated payment processing workloads requiring full encryption key control and compliance auditability.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Jul 22
2026
2026
AWS Lambda durable functions now supports customer managed key encryption
Oct 14
2026
2026
AWS Lambda durable functions increases durable operation and checkpoint payload limits
May 18
2026
2026
Ensure Code Integrity for AWS Lambda Functions with Automated Code Signing Using Terraform
Sep 10
2026
2026
AWS Lambda durable functions integrates with Pydantic AI
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.