Skip to content

Commit

Permalink
Revert "fix(custom-resources): Custom resource provider framework not…
Browse files Browse the repository at this point in the history
… passing `ResponseURL` to user function (#21065)"

This reverts commit 0c31b7f.
  • Loading branch information
comcalvi authored Jul 12, 2022
1 parent 10f8821 commit c3c2ded
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ async function invokeUserFunction<A extends { ResponseURL: '...' }>(functionArnE
// automatically by the JavaScript SDK.
const resp = await invokeFunction({
FunctionName: functionArn,
Payload: JSON.stringify(sanitizedPayload),

// Strip 'ResponseURL' -- the downstream CR doesn't need it and can only log it by accident
Payload: JSON.stringify({ ...sanitizedPayload, ResponseURL: undefined }),
});

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

0 comments on commit c3c2ded

Please sign in to comment.