-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
docs(triggers): add consideration about invocationType for the behavior of trigger failures #26450
Conversation
…r of trigger failures
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…or of trigger failures (aws#26450) TriggerCustomResourceProvider takes only the status code of Invoke API call into account. https://github.com/aws/aws-cdk/blob/7a6f953fe5a4d7e0ba5833f06596b132c95e0709/packages/aws-cdk-lib/triggers/lib/lambda/index.ts#L69-L73 If invocationType is `EVENT`, Lambda function is invoked asynchronously. In that case, if Lambda function is invoked successfully, the trigger will success regardless of the result for the function execution. I add this consideration into README. Closes aws#26341 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TriggerCustomResourceProvider takes only the status code of Invoke API call into account.
aws-cdk/packages/aws-cdk-lib/triggers/lib/lambda/index.ts
Lines 69 to 73 in 7a6f953
If invocationType is
EVENT
, Lambda function is invoked asynchronously. In that case, if Lambda function is invoked successfully, the trigger will success regardless of the result for the function execution. I add this consideration into README.Closes #26341
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license