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 <scott.guymer@philips.com>
This commit is contained in:
Scott Guymer
2025-05-08 10:06:06 +02:00
parent 41380bdcc4
commit aa3a63aeed
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -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.
@@ -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
*/
@@ -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({