gkrizek / bash-lambda-layer

Run Bash scripts in AWS Lambda via Layers
MIT License
428 stars 89 forks source link

Fixed error handling #66

Closed mashiike closed 4 years ago

mashiike commented 4 years ago

background

There is a case where the execution of Lambda function fails and the Task of Step Functions becomes Success. When I contacted AWS Support, it seems that it is because the error handling method described in the document is different.

Content

ref https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html#runtimes-api-invokeerror Corrected error handling to match the above documentation. Specifically added missing headers.