Skip to content

Instantly share code, notes, and snippets.

@thehelvetian
Forked from li0nel/sqs.yaml
Created January 1, 2019 06:02
Show Gist options
  • Select an option

  • Save thehelvetian/77d452fe717e5d706f7e89bce65fd48b to your computer and use it in GitHub Desktop.

Select an option

Save thehelvetian/77d452fe717e5d706f7e89bce65fd48b 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