Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSK ESM: Unsupported 'maximumBatchingWindowInSeconds' parameter for given event source mapping type #1418

Closed
jeffrichie opened this issue Mar 26, 2021 · 1 comment
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@jeffrichie
Copy link

Current behavior

When creating an MSK EventSourceMapping like so:

  new aws.lambda.EventSourceMapping(`hf-dilithium-consumer-esm`, {
    eventSourceArn: msk.arn,
    functionName: dilithiumConsumerLambda.arn,
    topics: [topics.validatedEntryState],
    startingPosition: 'LATEST',
    batchSize: 100
  });

We randomly end up getting the error:

    aws:lambda:EventSourceMapping (hf-dilithium-consumer-esm):
      error: 1 error occurred:
      	* updating urn:pulumi:development-ciii::nacelle-services-hail-frequency::aws:lambda/eventSourceMapping:EventSourceMapping::hf-dilithium-consumer-esm: 1 error occurred:
      	* error updating Lambda Event Source Mapping (c0fa40b9-9c7c-4044-bc60-0dd87a9a7ddb): InvalidParameterValueException: Unsupported 'maximumBatchingWindowInSeconds' parameter for given event source mapping type.
      {
        RespMetadata: {
          StatusCode: 400,
          RequestID: "4979485f-0cb8-4845-ac2c-b82e1168b3a9"
        },
        Message_: "Unsupported 'maximumBatchingWindowInSeconds' parameter for given event source mapping type.",
        Type: "User"
      }

Expected behavior

We are not setting maximumBatchingWindowInSeconds so the provider shouldn't send that parameter.

@jeffrichie jeffrichie added the kind/bug Some behavior is incorrect or out of spec label Mar 26, 2021
@jeffrichie
Copy link
Author

Woops, dup of pulumi/pulumi#6534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

1 participant