A financial technology company operates a transaction processing application deployed across two AWS Regions: us-east-1 and us-west-2. The application requires access to a third-party payment gateway API key that must be rotated every 30 days. To comply with security mandates, the key must be encrypted at rest using a Customer Managed Key (CMK) in AWS KMS, and the KMS CMK itself must be rotated annually. The solution must ensure that client applications in both Regions can retrieve the active API key with latency under and experience no service interruptions during both API key rotation and KMS key rotation. Which architecture should a solutions architect recommend to meet these requirements with the least operational overhead?
- ACreate a secret in AWS Secrets Manager in us-east-1 with replication to us-west-2. Use a Customer Managed Key (CMK) to encrypt the secret. Configure automated rotation every 30 days using a custom AWS Lambda function. Enable annual rotation on the KMS CMK, and configure the Lambda function to re-encrypt all historical secret versions using the new KMS key version immediately after KMS key rotation occurs.
- BCreate a Systems Manager Parameter Store parameter of type String in both us-east-1 and us-west-2. Configure an AWS Lambda function triggered by an Amazon EventBridge scheduled event to update the parameter value in both Regions every 30 days. Configure the Customer Managed Key (CMK) used to encrypt the parameters to rotate automatically every year.
- Create a secret in AWS Secrets Manager in us-east-1 and enable multi-Region replication to us-west-2. Configure the secret to use a Customer Managed Key (CMK) in each Region. Enable Secrets Manager automatic rotation every 30 days using a custom AWS Lambda function, and enable automatic key rotation on both KMS CMKs. Configure the application in each Region to read the secret from the local Secrets Manager endpoint.Answer
- DCreate a Systems Manager Parameter Store parameter of type SecureString in us-east-1. Configure a custom AWS Lambda function triggered by an Amazon EventBridge scheduled event to replicate the parameter value to us-west-2 and manually rotate the KMS Customer Managed Key (CMK) material every 30 days to keep the parameter and KMS key versions synchronized.
Answer
Create a secret in AWS Secrets Manager in us-east-1 and enable multi-Region replication to us-west-2. Configure the secret to use a Customer Managed Key (CMK) in each Region. Enable Secrets Manager automatic rotation every 30 days using a custom AWS Lambda function, and enable automatic key rotation on both KMS CMKs. Configure the application in each Region to read the secret from the local Secrets Manager endpoint.
The correct architecture uses AWS Secrets Manager's native multi-Region replication to copy the secret to the secondary Region, allowing local applications to retrieve the secret with minimal latency. Encryption is handled using a Customer Managed Key (CMK) in each Region. Configuring automatic rotation via a custom Lambda function ensures the third-party credential is rotated every 30 days, and enabling automatic KMS CMK rotation ensures that key rotation occurs seamlessly without needing manual re-encryption or causing application downtime.
Step-by-Step Solution
Key Concept
AWS Secrets Manager multi-Region replication combined with custom rotation Lambda functions and AWS KMS automatic key rotation mechanics.
Estimated Time:3m 0s