From 76e1d1824e345a625bdceb34dbf9eb86457e2e53 Mon Sep 17 00:00:00 2001 From: Calvin Combs Date: Fri, 8 Jul 2022 15:36:40 -0700 Subject: [PATCH] fixed payload --- .../lib/provider-framework/runtime/framework.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts b/packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts index 97b7c4de61e4b..f9586e032ae5f 100644 --- a/packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts +++ b/packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts @@ -105,9 +105,7 @@ async function invokeUserFunction(functionArnE // automatically by the JavaScript SDK. const resp = await invokeFunction({ FunctionName: functionArn, - - // Strip 'ResponseURL' -- the downstream CR doesn't need it and can only log it by accident - Payload: JSON.stringify({ ...sanitizedPayload, ResponseURL: undefined }), + Payload: JSON.stringify(sanitizedPayload), }); log('user function response:', resp, typeof(resp));