AWS IAM Policies from AWS SAM¶
ECS Compose-X has defined some IAM permissions for each resource types. In order to provide developers with greater flexibility and use well known system, Compose-X also imports IAM definitions from AWS Serverless Application Model.
You can find all the policies define in AWS SAM in AWS Documentation pages.
Example¶
services:
QueueConsumer: {} # Service definition
x-sqs:
QueueA:
Services:
- name: QueueConsumer
access: RWMessages
services:
QueueConsumer: {} # Service definition
x-sqs:
QueueA:
Services:
- name: QueueConsumer
access: SQSPollerPolicy
In the example above, we are using the SQSPollerPolicy which is already defined for us by AWS SAM.