Amazon web services AWS CloudFormation模板,带Kinesis事件消费者
我试图创建一个Lambda,当一个Kinesis流中有记录时调用它。为此,在lambda的template.yaml中,我以以下方式添加了一个运动消费者-Amazon web services AWS CloudFormation模板,带Kinesis事件消费者,amazon-web-services,aws-lambda,amazon-cloudformation,amazon-kinesis,Amazon Web Services,Aws Lambda,Amazon Cloudformation,Amazon Kinesis,我试图创建一个Lambda,当一个Kinesis流中有记录时调用它。为此,在lambda的template.yaml中,我以以下方式添加了一个运动消费者- EventStreamConsumer: Type: AWS::Kinesis::StreamConsumer Properties: StreamARN: !Sub arn:aws:kinesis:${AWS::Region}:${AWS::AccountId}:stream/${EventsKinesisS
EventStreamConsumer:
Type: AWS::Kinesis::StreamConsumer
Properties:
StreamARN: !Sub arn:aws:kinesis:${AWS::Region}:${AWS::AccountId}:stream/${EventsKinesisStream}
ConsumerName: !Ref KinesisConsumerName
EventSourceMapping:
Type: 'AWS::Lambda::EventSourceMapping'
Properties:
BatchSize: 100
MaximumBatchingWindowInSeconds: 15
Enabled: true
EventSourceArn: !Ref EventStreamConsumer
FunctionName: !GetAtt Function.Arn
StartingPosition: LATEST
当我使用SAM CLI部署此模板时,会看到以下错误:
Unsupported MaximumBatchingWindowInSecond parameter for given event source mapping type. (Service: AWSLambda; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: xxxxxxxxxx)
观察参数名称的错误消息
有人能解释为什么会发生这种情况以及如何减轻这种情况吗?批处理窗口、错误处理和并发设置不适用于HTTP/2流消费者 要完全理解,您可以参考下面的链接。 HTTP/1将支持您尝试执行的操作,而不是HTTP/2