I am running an AWS Batch job as Cloudwatch Event Target and I am using SNS to send a notification email about the status of the job.
I have created a SNS Topic, subscribed it to my email address and set it up as a target it a Cloudwatch event rule.
However, I want the status of the job in the Subject of the email. So in case of success I would need the subject as -
* Job Name- Status- Succeeded *
And in case of failure -
* Job Name- Status- Failed *
How can I achieve this?