From aa3a63aeedea3524cba5486087dfec2e5ecc89d5 Mon Sep 17 00:00:00 2001 From: Scott Guymer Date: Thu, 8 May 2025 10:06:06 +0200 Subject: [PATCH] Notifications Email Module - Enable endpoint configuration for SES Enable the ability to configure the endpoint for the SES connection used in the notifications email module. This enables the configuration of alternate endpoints as required, for example for local testing or alternative stacks. Signed-off-by: Scott Guymer --- .changeset/moody-women-itch.md | 5 +++++ plugins/notifications-backend-module-email/config.d.ts | 4 ++++ .../src/processor/transports/ses.ts | 1 + 3 files changed, 10 insertions(+) create mode 100644 .changeset/moody-women-itch.md diff --git a/.changeset/moody-women-itch.md b/.changeset/moody-women-itch.md new file mode 100644 index 0000000000..f68fddb848 --- /dev/null +++ b/.changeset/moody-women-itch.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-notifications-backend-module-email': patch +--- + +Enable the ability to configure the endpoint for the SES connection used in the notifications email module. This enables the configuration of alternate endpoints as required, for example for local testing or alternative stacks. diff --git a/plugins/notifications-backend-module-email/config.d.ts b/plugins/notifications-backend-module-email/config.d.ts index bce7a4b332..97a6495246 100644 --- a/plugins/notifications-backend-module-email/config.d.ts +++ b/plugins/notifications-backend-module-email/config.d.ts @@ -64,6 +64,10 @@ export interface Config { * AWS account ID to use */ accountId?: string; + /** + * AWS endpoint to use, defaults to standard AWS endpoint based on region + */ + endpoint?: string; /** * AWS region to use */ diff --git a/plugins/notifications-backend-module-email/src/processor/transports/ses.ts b/plugins/notifications-backend-module-email/src/processor/transports/ses.ts index 0be23078ab..3ac351307e 100644 --- a/plugins/notifications-backend-module-email/src/processor/transports/ses.ts +++ b/plugins/notifications-backend-module-email/src/processor/transports/ses.ts @@ -30,6 +30,7 @@ export const createSesTransport = async ( apiVersion: config.getOptionalString('apiVersion') ?? '2010-12-01', credentials: credentials.sdkCredentialProvider, region: config.getOptionalString('region'), + endpoint: config.getOptionalString('endpoint'), }, ]); return createTransport({