Is it possible to configure SNS email subject and body?

0

I would like to receive email notifications when my CodeBuild builds fail via SNS. However I'd like to be able to specify with that subject and body the emails are sent from SNS.

Is this possible (preferably without use of workarounds and other products) and how?

gefragt vor 4 Jahren5426 Aufrufe
2 Antworten
0

CodeBuild automatically provides the body of the SNS email, that can't be changed without resorting to another AWS service or magic.

To configure the name of the "from" address you need to configure the SNS topic's "Display name" from the "Edit" menu.

It's not configuring the subject or email, but it sort of does the trick.

beantwortet vor 4 Jahren
0

Like @CodingHorror said, it's not really possible to edit the subject and message without using another service.

You can use a lambda function to parse the event i.e. when CodeBuild builds fails and then create a customized message. These docs provide more information.

https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-1/

https://aws.amazon.com/premiumsupport/knowledge-center/change-sns-email-for-eventbridge/

AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen