ryansb / cfn-wrapper-python

Python decorator for making Lambda-backed CloudFormation resources
MIT License
71 stars 13 forks source link

fix invalid physicalResourceId if any handler got exception #8

Open wenxu1024 opened 4 months ago

wenxu1024 commented 4 months ago

When using this package, if the handler raise exception. The CFN stack just output "Invalid PhysicalResourceID" instead of output the real error message.

In the source code provided by AWS the physical resource ID is set to lambda logStreamName if not defined.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html#cfn-lambda-function-code-cfnresponsemodule-source