aws-toolkit-azure-devops
aws-toolkit-azure-devops copied to clipboard
Invoke Lambda Function - Synchronous execution failure is not failing vsts release step
Describe the bug Given #137 and #147 causing a lambda execution failure (via cloudwatch logs only), VSTS release step is reporting successful completion of the lambda invocation. To reproduce
- Given a lambda to invoke, build release pipeline, etc.
- Define a release step (any agent, linux, vs2017 etc)
- Add step : AWS Invoke Lambda Function
- Provide required info and select Synchronous under Invocation Type
- Deploy release
Expected behavior Invoke Lambda release step should fail if the lambda execution fails.
Screenshots
Configuration:
Cloudwatch logs showing lambda invoke failed (AWS level failure, not in my code)
ADO release step showing green/success invocation
Your Environment
- Azure Devops Cloud Based (dev.azure.com)
- AWS Invoke Lambda v 1.1.8 (latest from UI and seen in logs screenshot ^)
@hunterwerlla - any updates on this? This seems like a broad impact bug and violates basic expectations of the task with synchronous execution. We've had a lot of false positive ci steps because the task marches on despite the lambda throwing exceptions.
Looking at the code it seems we don't read the function error field, I agree this should be fixed.
@hunterwerlla Is there any update on this? This is causing too much nasty surprises in our apps.
Would love to see it fixed, or at least a comment from the developer
I'm running into this issue as well is there any response from the dev on this?