You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use an SQS queue as an event source, but there's a default value being provided for 'StartingPosition'. StartingPosition is not a valid value for SQS events.
Would it work to change this line to only provide a default 'StartingPosition' if EventSourceArn doesn't start with 'arn:aws:sqs'?
Here's the eventSources.json that I'm using (with queue names changed)
{ InvalidParameterValueException: StartingPosition is not valid for SQS event sources.
at Object.extractError (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/protocol/json.js:48:27)
at Request.extractError (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/protocol/rest_json.js:52:8)
at Request.callListeners (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/request.js:685:12)
message: 'StartingPosition is not valid for SQS event sources.',
The text was updated successfully, but these errors were encountered:
I'd like to use an SQS queue as an event source, but there's a default value being provided for 'StartingPosition'. StartingPosition is not a valid value for SQS events.
Would it work to change this line to only provide a default 'StartingPosition' if EventSourceArn doesn't start with 'arn:aws:sqs'?
Here's the eventSources.json that I'm using (with queue names changed)
The error message:
The text was updated successfully, but these errors were encountered: