Skip to content

Instantly share code, notes, and snippets.

@li0nel
Created December 11, 2017 20:37
Show Gist options
  • Save li0nel/9eb5df83c90f09536e7fe629e138e516 to your computer and use it in GitHub Desktop.
Save li0nel/9eb5df83c90f09536e7fe629e138e516 to your computer and use it in GitHub Desktop.
# That's all it takes to create a queue in CloudFormation
# CloudFormation will assign a unique name to it, that we
# will pass to our Laravel containers
Queue:
Type: AWS::SQS::Queue
# Then in the web.yaml stack, we update our ECSRole to grant
# our ECS instances access to this one queue we just created
- PolicyName: sqs-read-write-access
PolicyDocument:
Statement:
- Effect: Allow
Action:
- sqs:*
Resource: !GetAtt Queue.Arn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment