Created
August 14, 2020 13:19
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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