From e1473c7d7ef692b0cd85f6b7feefef0e266b2587 Mon Sep 17 00:00:00 2001 From: enzo-beltrami Date: Thu, 17 Oct 2019 19:46:08 -0300 Subject: [PATCH] Improvements on SQS docs as suggested on #6516 --- docs/providers/aws/events/sqs.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/providers/aws/events/sqs.md b/docs/providers/aws/events/sqs.md index 4ead9acf7..90fca0c1b 100644 --- a/docs/providers/aws/events/sqs.md +++ b/docs/providers/aws/events/sqs.md @@ -27,6 +27,7 @@ functions: compute: handler: handler.compute events: + # These are all possible formats. - sqs: arn:aws:sqs:region:XXXXXX:MyFirstQueue - sqs: arn: @@ -50,14 +51,26 @@ functions: ## Setting the BatchSize -For the SQS event integration, you can set the `batchSize`, which effects how many SQS messages will be included in a single Lambda invocation. The default `batchSize` is 10, and the max `batchSize` is 10. +For the SQS event integration, you can set the `batchSize`, which effects how many SQS messages can be included in a single Lambda invocation. The default `batchSize` is 10, and the max `batchSize` is 10. ```yml functions: - preprocess: - handler: handler.preprocess + compute: + handler: handler.compute events: - sqs: arn: arn:aws:sqs:region:XXXXXX:myQueue batchSize: 10 ``` + +## IAM Permissions + +Your Lambda role must include the following permissions: + +- sqs:ChangeMessageVisibility + +- sqs:DeleteMessage + +- sqs:GetQueueAttributes + +- sqs:ReceiveMessage \ No newline at end of file