Merge pull request #29884 from philips-forks/scott/ses_endpoint

Notifications Email Module - Enable endpoint configuration for SES
This commit is contained in:
Ben Lambert
2025-05-13 14:40:18 +02:00
committed by GitHub
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({