mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Add SSM endpoint to AWS credentials (#12212)
This commit is contained in:
@@ -138,6 +138,7 @@ export type AwsCredentialsType = {
|
|||||||
sesEndpoint?: string;
|
sesEndpoint?: string;
|
||||||
sqsEndpoint?: string;
|
sqsEndpoint?: string;
|
||||||
s3Endpoint?: string;
|
s3Endpoint?: string;
|
||||||
|
ssmEndpoint?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Some AWS services are global and don't have a region
|
// Some AWS services are global and don't have a region
|
||||||
@@ -294,6 +295,19 @@ export class Aws implements ICredentialType {
|
|||||||
default: '',
|
default: '',
|
||||||
placeholder: 'https://s3.{region}.amazonaws.com',
|
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(
|
async authenticate(
|
||||||
@@ -356,6 +370,8 @@ export class Aws implements ICredentialType {
|
|||||||
endpointString = credentials.sqsEndpoint;
|
endpointString = credentials.sqsEndpoint;
|
||||||
} else if (service) {
|
} else if (service) {
|
||||||
endpointString = `https://${service}.${region}.amazonaws.com`;
|
endpointString = `https://${service}.${region}.amazonaws.com`;
|
||||||
|
} else if (service === 'ssm' && credentials.ssmEndpoint) {
|
||||||
|
endpointString = credentials.ssmEndpoint;
|
||||||
}
|
}
|
||||||
endpoint = new URL(endpointString!.replace('{region}', region) + path);
|
endpoint = new URL(endpointString!.replace('{region}', region) + path);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user