Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RCOR_AWS_26: Ensure all data stored in the SNS topic is encrypted #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions sam/cfn/cfn-sns-topics.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: Provisions Tailor SNS topics
Parameters:
Expand All @@ -9,21 +10,25 @@ Resources:
Properties:
DisplayName: !Join [ "-", [ "talr-ops-notifications", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-ops-notifications", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrClaRequest:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-cla-request", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-cla-request", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrClaResponse:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-cla-response", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-cla-response", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrVpcCfnResponse:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-vpccfn-response", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-vpccfn-response", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsPolicyTalrVpcCfnResponse:
Type: AWS::SNS::TopicPolicy
Properties:
Expand All @@ -44,21 +49,25 @@ Resources:
Properties:
DisplayName: !Join [ "-", [ "talr-nipapcfn-response", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-nipapcfn-response", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrDispatchRequest:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-dispatch-request", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-dispatch-request", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrNotifyRequest:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-notify-request", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-notify-request", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
snsTalrEventsPush:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join [ "-", [ "talr-events-push", !Ref stage ] ]
TopicName: !Join [ "-", [ "talr-events-push", !Ref stage ] ]
KmsMasterKeyId: !Ref KmsKey
Outputs:
snsTopicNameTalrOpsNotifications:
Description: SNS topic name for talr-ops-notifications
Expand Down Expand Up @@ -108,3 +117,8 @@ Outputs:
snsArnTalrEventsPush:
Description: SNS Arn for talr-events-push
Value: !Ref 'snsTalrEventsPush'
Resources:
KmsKey:
Type: AWS::KMS::Key
Description: Key used to encrypt SNS topics
```