aws / aws/aws-toolkit-azure-devops

Invoke Lambda Function - Synchronous execution failure is not failing vsts release step

Open
#175 6 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
258
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**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**

1. Given a lambda to invoke, build release pipeline, etc.
2. Define a release step (any agent, linux, vs2017 etc)
3. Add step : AWS Invoke Lambda Function
4. Provide required info and select Synchronous under Invocation Type
5. Deploy release

**Expected behavior**
Invoke Lambda release step should fail if the lambda execution fails.

**Screenshots**

Configuration:
![image](https://user-images.githubusercontent.com/6283944/57456528-4e0ec480-7233-11e9-9cad-fb632abd68de.png)
Cloudwatch logs showing lambda invoke failed (AWS level failure, not in my code)
![image](https://user-images.githubusercontent.com/6283944/57457099-7cd96a80-7234-11e9-9c65-72d17425fdf1.png)
ADO release step showing green/success invocation
![image](https://user-images.githubusercontent.com/6283944/57457301-df326b00-7234-11e9-8086-d98839c4b825.png)

**Your Environment**
- Azure Devops Cloud Based (dev.azure.com)
- AWS Invoke Lambda v 1.1.8 (latest from UI and seen in logs screenshot ^)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.