question

eleonora-5b742929-1f16-4440-8f8f-3e85d5032ea1 avatar image

Add an event source

Hello,

I'm following the instruction on aws to create an event source. I wrote this code:

$ aws lambda create-event-source-mapping
--region eu-west-1
--function-name ProcessDynamoDBStream
--event-source DynamoDB-stream-arn
--batch-size 100
--starting-position TRIM_HORIZON
--profile adminuser

but some commands are not recognized:

Unknown options: eu-west-1, ProcessDynamoDBStream, 100, --starting-position, TRIM_HORIZON, --profile, adminuser, --region

Is there someone that can explain me why?

lambdaaws
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi Eleonora,

Thanks for posting! This question is more suited for AWS Forums, please post it there https://forums.aws.amazon.com/ - Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.