Skip to content

Commit f7b25b6

Browse files
committed
fix(custom-resources): Custom resource provider framework not passing ResponseURL to user function (#21065)
#20889 included a change that broke the custom resource framework by not including the necessary presigned URL. This includes the presigned URL, and fixes the issue. This PR does not include test changes because this is the runtime code. Closes #21058 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b67950d commit f7b25b6

File tree

1 file changed

+1
-3
lines changed
  • packages/@aws-cdk/custom-resources/lib/provider-framework/runtime

1 file changed

+1
-3
lines changed

packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ async function invokeUserFunction<A extends { ResponseURL: '...' }>(functionArnE
105105
// automatically by the JavaScript SDK.
106106
const resp = await invokeFunction({
107107
FunctionName: functionArn,
108-
109-
// Strip 'ResponseURL' -- the downstream CR doesn't need it and can only log it by accident
110-
Payload: JSON.stringify({ ...sanitizedPayload, ResponseURL: undefined }),
108+
Payload: JSON.stringify(sanitizedPayload),
111109
});
112110

113111
log('user function response:', resp, typeof(resp));

0 commit comments

Comments
 (0)