I am going through the AWS tutorial: Tutorial: Using AWS Lambda with Amazon Simple Queue Service - AWS Lambda
Steps:
Create the Execution Role. – OK
Create the Function – OK
Test the Function – OK
Create an Amazon SQS Queue -OK
The step that is failing is “Configure Event Source”:
aws lambda create-event-source-mapping --function-name AlexProcessSQSRecord --batch-size 10 --event-source arn:aws:sqs:us-east-1:12345678901:AlexTrainingQueu
The error that I see is as follows:
aws: error: argument --starting-position is required
However, no value for starting-position fits
Also, there is a post in StackOverflow that states that it is not possible to use SQS as an event source for Lambda:
Why isn't SQS an event source for lambda?
So, why the Amazon tutorial suggests:
Using AWS Lambda with Amazon Simple Queue Service