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

Error: error putting Lambda Function Event Invoke Config #14

Open
fstr opened this issue Nov 9, 2022 · 1 comment
Open

Error: error putting Lambda Function Event Invoke Config #14

fstr opened this issue Nov 9, 2022 · 1 comment

Comments

@fstr
Copy link

fstr commented Nov 9, 2022

When using the Coralogix S3 module and applying it for the first time, there is a concurrency issue. This requires several terraform apply runs until all the resources are finally applied.

Error: error putting Lambda Function Event Invoke Config (Coralogix-S3-XYZ): ResourceConflictException: The EventInvokeConfig for function arn:aws:lambda:<region>:<account_id>:function:Coralogix-S3-XYZ:$LATEST could not be updated due to a concurrent update operation.

This is due to an issue in the used terraform-aws-lambda module and/or how the AWS provider applies these changes.

You can find more information about this (still?) unfixed issue here: terraform-aws-modules/terraform-aws-lambda#263 and an example implementation of the workaround by someone here: chanzuckerberg/napari-hub#577

You can try bumping the version of terraform-aws-lambda to the latest 4.6.1 and see if it still happens or implement the liked workaround.

@academ1c
Copy link

academ1c commented Jun 8, 2023

I confirmed this error too.
Please check and fix
module.lambda.aws_lambda_function_event_invoke_config.this["current_version"]
with next code
maximum_retry_attempts = 2 -> maximum_retry_attempts = 5
It is possible solution. Because now I should run terraform apply twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants