From 565c7b8b9cfd3e10f6a2c60add96fea4c4d95d33 Mon Sep 17 00:00:00 2001 From: Stanimira Rikova <104592468+Stamsy@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:30:26 +0200 Subject: [PATCH] feat: Add SSM endpoint to AWS credentials (#12212) --- .../nodes-base/credentials/Aws.credentials.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/nodes-base/credentials/Aws.credentials.ts b/packages/nodes-base/credentials/Aws.credentials.ts index 9e968fdce5a30..3d5b37c6f2f60 100644 --- a/packages/nodes-base/credentials/Aws.credentials.ts +++ b/packages/nodes-base/credentials/Aws.credentials.ts @@ -138,6 +138,7 @@ export type AwsCredentialsType = { sesEndpoint?: string; sqsEndpoint?: string; s3Endpoint?: string; + ssmEndpoint?: string; }; // Some AWS services are global and don't have a region @@ -294,6 +295,19 @@ export class Aws implements ICredentialType { default: '', placeholder: 'https://s3.{region}.amazonaws.com', }, + { + displayName: 'SSM Endpoint', + name: 'ssmEndpoint', + description: 'Endpoint for AWS Systems Manager (SSM)', + type: 'string', + displayOptions: { + show: { + customEndpoints: [true], + }, + }, + default: '', + placeholder: 'https://ssm.{region}.amazonaws.com', + }, ]; async authenticate( @@ -356,6 +370,8 @@ export class Aws implements ICredentialType { endpointString = credentials.sqsEndpoint; } else if (service) { endpointString = `https://${service}.${region}.amazonaws.com`; + } else if (service === 'ssm' && credentials.ssmEndpoint) { + endpointString = credentials.ssmEndpoint; } endpoint = new URL(endpointString!.replace('{region}', region) + path); } else {