Skip to content

Commit e458c5d

Browse files
committed
fix invalid physicalResourceId if any handler got exception
1 parent db5a81a commit e458c5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cfn_resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def wrapper_func(event, context):
3838
}
3939
if event.get("PhysicalResourceId", False):
4040
response["PhysicalResourceId"] = event["PhysicalResourceId"]
41+
else:
42+
response["PhysicalResourceId"] = context["logStreamName"]
4143

4244
if base_response is not None:
4345
response.update(base_response)

0 commit comments

Comments
 (0)