Skip to content

Commit

Permalink
fix(topic): kms permissions (#791)
Browse files Browse the repository at this point in the history
- Adds decrypt permissions to the topic permissions policy
when encryption at rest is enabled
  • Loading branch information
roleyfoley authored Nov 30, 2023
1 parent 630c65f commit 284c716
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aws/components/topic/state.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"publish" : [snsPublishPermission(topicId)] +
(solution.Encrypted)?then(
snsEncryptionStatement(
[ "kms:GenerateDataKey*" ],
[
"kms:GenerateDataKey*",
"kms:Decrypt"
],
(baselineIds["Encryption"])!"",
getExistingReference(topicId, REGION_ATTRIBUTE_TYPE)
),
Expand Down

0 comments on commit 284c716

Please sign in to comment.