Skip to content

Commit 3045fbf

Browse files
authored
Merge pull request #1 from kolomied/sns-encryption
Add SNS SSE
2 parents 4c204a1 + 69d16c7 commit 3045fbf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

template.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,22 @@ Resources:
165165
Ref: 'AWS::StackName'
166166
ApiGatewayNotificationTopic:
167167
Type: AWS::SNS::Topic
168+
Properties:
169+
KmsMasterKeyId: !Ref NotificationsEncryptionKey
170+
NotificationsEncryptionKey:
171+
Type: AWS::KMS::Key
172+
Properties:
173+
Description: SSE for SNS notifications
174+
KeyPolicy:
175+
Version: 2012-10-17
176+
Id: !Ref AWS::StackName
177+
Statement:
178+
- Effect: Allow
179+
Principal:
180+
AWS:
181+
- !Sub "arn:${AWS::Partition}:iam::${AWS::AccountId}:root"
182+
Action: 'kms:*'
183+
Resource: '*'
168184

169185
Outputs:
170186
WebApi:

0 commit comments

Comments
 (0)