I'm looking to connect a Kinesis stream to a Lambda function via event source mapping, want to set the parallelization-factor
value to any value between 1- 10 as suggested in the documention:
https://docs.aws.amazon.com/cli/latest/reference/lambda/create-event-source-mapping.html
and an example at https://aws.amazon.com/blogs/compute/new-aws-lambda-scaling-controls-for-kinesis-and-dynamodb-event-sources/
The following command results in an error:
aws lambda create-event-source-mapping --function-name myLambdaFunction \
--parallelization-factor 2 --batch-size 100 --starting-position LATEST \
--event-source-arn arn:aws:kinesis:eu-west-1:id:stream/mystreamname
Unknown options: --parallelization-factor, 2
If I look at the AWS CLI aws lambda create-event-source-mapping help, there is no option for --parallelization-factor
SYNOPSIS
create-event-source-mapping
--event-source-arn <value>
--function-name <value>
[--enabled | --no-enabled]
[--batch-size <value>]
[--starting-position <value>]
[--starting-position-timestamp <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
There is a difference in documentation and the aws cli help. Is the parallelization factor not enabled for kinesis? What am I doing wrong?
PS: I have tried in eu-west-1
and us-east-1
regions. I am getting the same error if I try to set --maximum-batching-window-in-seconds
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.