Skip to content

Instantly share code, notes, and snippets.

@lvthillo
Created August 14, 2020 13:19
Show Gist options
  • Save lvthillo/495f3c8c0dc2136333d85708ec963fda to your computer and use it in GitHub Desktop.
Save lvthillo/495f3c8c0dc2136333d85708ec963fda to your computer and use it in GitHub Desktop.
The policy grants the SNS topic the SendMessage permission for the five queues
QueuePolicy:
Type: AWS::SQS::QueuePolicy
Properties:
Queues:
- !Ref ColorQueue
- !Ref BlueYellowQueue
- !Ref RedQueue
- !Ref GreenHighQueue
- !Ref GreenLowQueue
PolicyDocument:
Statement:
- Effect: Allow
Principal:
Service: sns.amazonaws.com
Action:
- sqs:SendMessage
Resource: "*"
Condition:
ArnEquals:
aws:SourceArn:
!Ref SNSTopic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment