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?

feita há 4 anos5429 visualizações
2 Respostas
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.

respondido há 4 anos
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas