Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: add deletion policy to KMS keys (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
carvantes authored Mar 3, 2022
1 parent 2604e59 commit 9991809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudformation/kms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Resources:
TargetKeyId: !Ref S3KMSKey
S3KMSKey:
Type: AWS::KMS::Key
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
EnableKeyRotation: true
Description: 'KMS CMK for s3'
Expand All @@ -30,6 +32,8 @@ Resources:
TargetKeyId: !Ref DynamodbKMSKey
DynamodbKMSKey:
Type: AWS::KMS::Key
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
EnableKeyRotation: true
Description: 'KMS CMK for DynamoDB'
Expand Down

0 comments on commit 9991809

Please sign in to comment.