first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,29 @@
{
"node": "n8n-nodes-base.awsCertificateManager",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": ["Development"],
"resources": {
"credentialDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/credentials/aws/"
}
],
"primaryDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.awscertificatemanager/"
}
],
"generic": [
{
"label": "Why business process automation with n8n can change your daily life",
"icon": "🧬",
"url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/"
},
{
"label": "7 no-code workflow automations for Amazon Web Services",
"url": "https://n8n.io/blog/aws-workflow-automation/"
}
]
}
}
@@ -0,0 +1,232 @@
import type {
IExecuteFunctions,
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { NodeConnectionTypes } from 'n8n-workflow';
import { certificateFields, certificateOperations } from './CertificateDescription';
import { awsApiRequestAllItems, awsApiRequestREST } from './GenericFunctions';
import { awsNodeAuthOptions, awsNodeCredentials } from '../utils';
export class AwsCertificateManager implements INodeType {
description: INodeTypeDescription = {
displayName: 'AWS Certificate Manager',
name: 'awsCertificateManager',
icon: 'file:acm.svg',
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Sends data to AWS Certificate Manager',
defaults: {
name: 'AWS Certificate Manager',
},
inputs: [NodeConnectionTypes.Main],
outputs: [NodeConnectionTypes.Main],
credentials: awsNodeCredentials,
properties: [
awsNodeAuthOptions,
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Certificate',
value: 'certificate',
},
],
default: 'certificate',
},
// Certificate
...certificateOperations,
...certificateFields,
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
const returnData: IDataObject[] = [];
const qs: IDataObject = {};
let responseData;
const resource = this.getNodeParameter('resource', 0);
const operation = this.getNodeParameter('operation', 0);
for (let i = 0; i < items.length; i++) {
try {
if (resource === 'certificate') {
//https://docs.aws.amazon.com/acm/latest/APIReference/API_DeleteCertificate.html
if (operation === 'delete') {
const certificateArn = this.getNodeParameter('certificateArn', i) as string;
const body: IDataObject = {
CertificateArn: certificateArn,
};
responseData = await awsApiRequestREST.call(
this,
'acm',
'POST',
'',
JSON.stringify(body),
qs,
{
'X-Amz-Target': 'CertificateManager.DeleteCertificate',
'Content-Type': 'application/x-amz-json-1.1',
},
);
responseData = { success: true };
}
//https://docs.aws.amazon.com/acm/latest/APIReference/API_GetCertificate.html
if (operation === 'get') {
const certificateArn = this.getNodeParameter('certificateArn', i) as string;
const body: IDataObject = {
CertificateArn: certificateArn,
};
responseData = await awsApiRequestREST.call(
this,
'acm',
'POST',
'',
JSON.stringify(body),
qs,
{
'X-Amz-Target': 'CertificateManager.GetCertificate',
'Content-Type': 'application/x-amz-json-1.1',
},
);
}
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html
if (operation === 'getMany') {
const returnAll = this.getNodeParameter('returnAll', 0);
const options = this.getNodeParameter('options', i);
const body: { Includes: IDataObject; CertificateStatuses: string[]; MaxItems: number } =
{
CertificateStatuses: [],
Includes: {},
MaxItems: 0,
};
if (options.certificateStatuses) {
body.CertificateStatuses = options.certificateStatuses as string[];
}
if (options.certificateStatuses) {
body.Includes.extendedKeyUsage = options.extendedKeyUsage as string[];
}
if (options.keyTypes) {
body.Includes.keyTypes = options.keyTypes as string[];
}
if (options.keyUsage) {
body.Includes.keyUsage = options.keyUsage as string[];
}
if (returnAll) {
responseData = await awsApiRequestAllItems.call(
this,
'CertificateSummaryList',
'acm',
'POST',
'',
'{}',
qs,
{
'X-Amz-Target': 'CertificateManager.ListCertificates',
'Content-Type': 'application/x-amz-json-1.1',
},
);
} else {
body.MaxItems = this.getNodeParameter('limit', 0);
responseData = await awsApiRequestREST.call(
this,
'acm',
'POST',
'',
JSON.stringify(body),
qs,
{
'X-Amz-Target': 'CertificateManager.ListCertificates',
'Content-Type': 'application/x-amz-json-1.1',
},
);
responseData = responseData.CertificateSummaryList;
}
}
//https://docs.aws.amazon.com/acm/latest/APIReference/API_DescribeCertificate.html
if (operation === 'getMetadata') {
const certificateArn = this.getNodeParameter('certificateArn', i) as string;
const body: IDataObject = {
CertificateArn: certificateArn,
};
responseData = await awsApiRequestREST.call(
this,
'acm',
'POST',
'',
JSON.stringify(body),
qs,
{
'X-Amz-Target': 'CertificateManager.DescribeCertificate',
'Content-Type': 'application/x-amz-json-1.1',
},
);
responseData = responseData.Certificate;
}
//https://docs.aws.amazon.com/acm/latest/APIReference/API_RenewCertificate.html
if (operation === 'renew') {
const certificateArn = this.getNodeParameter('certificateArn', i) as string;
const body: IDataObject = {
CertificateArn: certificateArn,
};
responseData = await awsApiRequestREST.call(
this,
'acm',
'POST',
'',
JSON.stringify(body),
qs,
{
'X-Amz-Target': 'CertificateManager.RenewCertificate',
'Content-Type': 'application/x-amz-json-1.1',
},
);
responseData = { success: true };
}
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
throw error;
}
}
return [returnData as INodeExecutionData[]];
}
}
@@ -0,0 +1,327 @@
import type { INodeProperties } from 'n8n-workflow';
export const certificateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['certificate'],
},
},
options: [
{
name: 'Delete',
value: 'delete',
description: 'Delete a certificate',
action: 'Delete a certificate',
},
{
name: 'Get',
value: 'get',
description: 'Get a certificate',
action: 'Get a certificate',
},
{
name: 'Get Many',
value: 'getMany',
description: 'Get many certificates',
action: 'Get many certificates',
},
{
name: 'Get Metadata',
value: 'getMetadata',
description: 'Get certificate metadata',
action: 'Get certificate metadata',
},
{
name: 'Renew',
value: 'renew',
description: 'Renew a certificate',
action: 'Renew a certificate',
},
],
default: 'renew',
},
];
export const certificateFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* certificate:renew */
/* -------------------------------------------------------------------------- */
{
displayName: 'Certificate ARN',
name: 'certificateArn',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['certificate'],
operation: ['renew', 'get', 'delete', 'getMetadata'],
},
},
description:
'String that contains the ARN of the ACM certificate to be renewed. This must be of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012.',
},
/* -------------------------------------------------------------------------- */
/* certificate:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Bucket Name',
name: 'bucketName',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['certificate'],
operation: ['delete'],
},
},
},
{
displayName: 'Certificate Key',
name: 'certificateKey',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['certificate'],
operation: ['delete'],
},
},
},
/* -------------------------------------------------------------------------- */
/* certificate:getMany */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['getMany'],
resource: ['certificate'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['getMany'],
resource: ['certificate'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 500,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['certificate'],
operation: ['getMany'],
},
},
options: [
{
displayName: 'Certificate Statuses',
name: 'certificateStatuses',
type: 'multiOptions',
options: [
{
name: 'Expired',
value: 'EXPIRED',
},
{
name: 'Failed',
value: 'FAILED',
},
{
name: 'Inactive',
value: 'INACTIVE',
},
{
name: 'Issued',
value: 'ISSUED',
},
{
name: 'Pending Validation',
value: 'PENDING_VALIDATION',
},
{
name: 'Revoked',
value: 'REVOKED',
},
{
name: 'Validation Timed Out',
value: 'VALIDATION_TIMED_OUT',
},
],
default: [],
description: 'Filter the certificate list by status value',
},
{
displayName: 'Extended Key Usage',
name: 'extendedKeyUsage',
type: 'multiOptions',
options: [
{
name: 'Any',
value: 'ANY',
},
{
name: 'Code Signing',
value: 'CODE_SIGNING',
},
{
name: 'Custom',
value: 'CUSTOM',
},
{
name: 'Email Protection',
value: 'EMAIL_PROTECTION',
},
{
name: 'IPSEC End System',
value: 'IPSEC_END_SYSTEM',
},
{
name: 'IPSEC Tunnel',
value: 'IPSEC_TUNNEL',
},
{
name: 'IPSEC User',
value: 'IPSEC_USER',
},
{
name: 'None',
value: 'NONE',
},
{
name: 'OCSP Signing',
value: 'OCSP_SIGNING',
},
{
name: 'Time Stamping',
value: 'TIME_STAMPING',
},
{
name: 'TLS Web Client Authentication',
value: 'TLS_WEB_CLIENT_AUTHENTICATION',
},
{
name: 'TLS Web Server Authentication',
value: 'TLS_WEB_SERVER_AUTHENTICATION',
},
],
default: [],
description: 'Specify one or more ExtendedKeyUsage extension values',
},
{
displayName: 'Key Types',
name: 'keyTypes',
type: 'multiOptions',
options: [
{
name: 'EC Prime256v1',
value: 'EC_prime256v1',
},
{
name: 'EC Secp384r1',
value: 'EC_secp384r1',
},
{
name: 'EC Secp521r1',
value: 'EC_secp521r1',
},
{
name: 'RSA 1024',
value: 'RSA_1024',
},
{
name: 'RSA 2048',
value: 'RSA_2048',
},
{
name: 'RSA 4096',
value: 'RSA_4096',
},
],
default: ['RSA_2048'],
description: 'Specify one or more algorithms that can be used to generate key pairs',
},
{
displayName: 'Key Usage',
name: 'keyUsage',
type: 'multiOptions',
options: [
{
name: 'Any',
value: 'ANY',
},
{
name: 'Certificate Signing',
value: 'CERTIFICATE_SIGNING',
},
{
name: 'CRL Signing',
value: 'CRL_SIGNING',
},
{
name: 'Custom',
value: 'CUSTOM',
},
{
name: 'Data Encipherment',
value: 'DATA_ENCIPHERMENT',
},
{
name: 'Decipher Only',
value: 'DECIPHER_ONLY',
},
{
name: 'Digital Signature',
value: 'DIGITAL_SIGNATURE',
},
{
name: 'Encipher Only',
value: 'ENCIPHER_ONLY',
},
{
name: 'Key Agreement',
value: 'KEY_AGREEMENT',
},
{
name: 'Key Encipherment',
value: 'KEY_ENCIPHERMENT',
},
{
name: 'Non Repudiation',
value: 'NON_REPUDIATION',
},
],
default: [],
description: 'Specify one or more KeyUsage extension values',
},
],
},
];
@@ -0,0 +1,89 @@
import get from 'lodash/get';
import type {
IDataObject,
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IWebhookFunctions,
IHttpRequestOptions,
JsonObject,
IHttpRequestMethods,
} from 'n8n-workflow';
import { jsonParse, NodeApiError } from 'n8n-workflow';
import { getAwsCredentials } from '../GenericFunctions';
export async function awsApiRequest(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
service: string,
method: IHttpRequestMethods,
path: string,
body?: string | Buffer,
query: IDataObject = {},
headers?: object,
): Promise<any> {
const { credentials, credentialsType } = await getAwsCredentials(this);
const requestOptions = {
qs: {
service,
path,
...query,
},
headers,
method,
url: '',
body,
region: credentials?.region as string,
} as IHttpRequestOptions;
try {
return await this.helpers.requestWithAuthentication.call(this, credentialsType, requestOptions);
} catch (error) {
throw new NodeApiError(this.getNode(), error as JsonObject);
}
}
export async function awsApiRequestREST(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,
service: string,
method: IHttpRequestMethods,
path: string,
body?: string,
query: IDataObject = {},
headers?: object,
): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, query, headers);
try {
return JSON.parse(response as string);
} catch (e) {
return response;
}
}
export async function awsApiRequestAllItems(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,
propertyName: string,
service: string,
method: IHttpRequestMethods,
path: string,
body?: string,
query: IDataObject = {},
headers: IDataObject = {},
): Promise<any> {
const returnData: IDataObject[] = [];
let responseData;
do {
responseData = await awsApiRequestREST.call(this, service, method, path, body, query, headers);
if (responseData.NextToken) {
const data = jsonParse<any>(body as string, {
errorMessage: 'Response body is not valid JSON',
});
data.NextToken = responseData.NextToken;
}
returnData.push.apply(returnData, get(responseData, propertyName) as IDataObject[]);
} while (responseData.NextToken !== undefined);
return returnData;
}
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 85 85"><use xlink:href="#a" x="2.5" y="2.5"/><symbol id="a" overflow="visible"><g stroke="none"><path fill="#759c3e" d="m80 47.005-40.012 4.962V27.99L80 32.952z"/><path fill="#4b612c" d="m0 47.005 39.988 4.962V27.99L0 32.952z"/><path fill="#648339" d="M10 0h60v15H10z"/><path fill="#3c4929" d="m65 20-48.976.212L10 15h60z"/><path fill="#648339" d="M10 65h60v15H10z"/><path fill="#b7ca9d" d="M65 60H15l-5 5h60z"/></g></symbol></svg>

After

Width:  |  Height:  |  Size: 620 B