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?

preguntada hace 4 años5426 visualizaciones
2 Respuestas
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 hace 4 años
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 hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas