Email Subject for Email Customized for SNS Topic Email Endpoint without using Lambda

0

Have a business use case to be implemented without Lambda where a Email notification is sent to the subscribers of the SNS Topic with Customized Subject & Email Body when Code is pushed into the AWS CodeCommit repo.

Scenario 1... For sending the notification solution, the AWS CodeCommit - Notify (Alert) - Manage Notifications - used where the end email recd. via Target SNS topic is HARD CORDED Email Subject & Email Body with details that couldn't be customized. Sample Email Subject: UPDATE: AWS CodeCommit ap-south-1 push: repository_name Sample Email body: Hello, The following repository in AWS CodeCommit has changed: <repository_name>. The repository was changed by the IAM user: username Branches: <branch_name>. The problem is with this soluton is, not able to customize either the subject or the Email Body.

Scenario 2... For sending the notification solution, the AWS EventBridge - Rule - used with input transformer where the end email recd. via linked Target SNS topic. The Email Subject was Hard CODED as AWS Notification Message & Email Body got Fully Customized. Can can any one help what are workarounds that I can customize the Subject using EventBridge input transformation.

NOTE: THE USE OF LAMBDA IS RESTRICTED TO IMPLEMENT THE REQUIREMENT

1 Answer
0

Hello,

Unfortunately, the workaround in both the scenarios would be introducing a proxy Lambda function which manually adds a subject. As of this moment, the ability to add/modify notifications sent from services via SNS does not exist, although its a popular feature request. You can keep an eye on the AWS What's New page and the Amazon SNS blog, as all new feature requests and enhancements are posted there.

 - AWS blogs: https://blogs.amazon.com/
 - What's New: https://aws.amazon.com/new/
 - AWS Release Notes: https://aws.amazon.com/releasenotes/
 - AWS Compute Blog: Amazon SNS - https://aws.amazon.com/blogs/compute/tag/amazon-sns/
SUPPORT ENGINEER
Rajil_P
answered 25 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions