From 5a6b1916882c748b34ee3402e6a258b5cefdf284 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Wed, 20 Jan 2021 12:23:32 +0100 Subject: [PATCH] :bug: Fix AWS lambda and SNS problem with signature (#1361) --- packages/nodes-base/nodes/Aws/GenericFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Aws/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/GenericFunctions.ts index d9cfef763b..9bccee16c3 100644 --- a/packages/nodes-base/nodes/Aws/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/GenericFunctions.ts @@ -36,7 +36,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I const endpoint = new URL(getEndpointForService(service, credentials) + path); // Sign AWS API request with the user credentials - const signOpts = { headers: headers || {}, host: endpoint.host, method, path: endpoint.pathname, body }; + const signOpts = { headers: headers || {}, host: endpoint.host, method, path, body }; sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`.trim(), secretAccessKey: `${credentials.secretAccessKey}`.trim() });