You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powertools-cloudformation/src/main/java/software/amazon/lambda/powertools/cloudformation/AbstractCustomResourceHandler.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,12 @@ public final Response handleRequest(CloudFormationCustomResourceEvent event, Con
65
65
} catch (CustomResourceResponseExceptionrse) {
66
66
LOG.error("Unable to generate response. Sending empty failure to {}", responseUrl, rse);
67
67
try {
68
-
client.send(event, context, Response.failed());
68
+
// If the customers code throws an exception, Powertools should respond in a way that doesn't
69
+
// change the CloudFormation resources.
70
+
// In the case of a Update or Delete, a failure is sent with the existing PhysicalResourceId
71
+
// indicating no change.
72
+
// In the case of a Create, null will be set and changed to the Lambda LogStreamName before sending.
Copy file name to clipboardExpand all lines: powertools-cloudformation/src/main/java/software/amazon/lambda/powertools/cloudformation/CloudFormationResponse.java
0 commit comments