python code for email notification after codedeploy is successful

+1 vote
i wanna see if this is possible, based on codedeploy status event send email to recipient list.
Oct 11, 2019 in DevOps on Cloud by Rishi
• 210 points
1,251 views
If you are looking specifically for python code to have a trigger that sends a notification, then I think you can use the Lambda function with codedeploy and SNS.

1 answer to this question.

0 votes

Hey @Rishi, you can create a trigger in CodeDeply and use the SNS service for sending an email to a particular domain. 

  • Go to CodeDeploy and choose Applications
  • Select the application for which you'd like to add the trigger for.
  • On the application detail section click on edit
  • expand advanced - optional
  • Choose trigger in the trigger section
  • Add the trigger name, event type(when the trigger is supposed to send a notification using SNS)
  • In SNS create a topic
  • and finally, click on create trigger.
answered Oct 11, 2019 by Kalgi
• 52,350 points
@kalgi yep that is doable. I was more interested in if anhyone has done it through python as i want to do it for like 100+ applications dynamically.

based on event deployment_success & deployment_failure.
Then as @jack suggested, the best option for you would be using Lambda functions. Are you okay with using Lambda? Are you aware of how lamda functions work?
yes i am aware how lambda functions work.i am wondering how you would manage the recipient lists through lambda functions?
So basically what happens is you can only send an email to one domain through one topic. You can create a group of email ids and publish the topic to that one domain(email's group). In the lambda function, you'll only have to mention the domain of the group.

Related Questions In DevOps on Cloud

0 votes
1 answer

I am looking for a python code to get my Azure VM status in my email , like whether the running vms port is open to the internet. If its open to internet I should get a mail notification

Hey, @Sourav, Check this out https://www.edureka.co/community/66025/azure-vm-monitoring It deals with ...READ MORE

answered May 29, 2020 in DevOps on Cloud by Sirajul
• 59,230 points
1,850 views
+2 votes
0 answers

Codedeploy, email notification based on codedeploy success status/events.

is there a way or python code ...READ MORE

Oct 11, 2019 in DevOps on Cloud by Rishi
• 210 points

closed Oct 11, 2019 by Kalgi 911 views
0 votes
0 answers

What is the abbreviation for Azure DevOps?

Could it be ADO, but it gets ...READ MORE

Mar 15, 2022 in DevOps on Cloud by Kichu
• 19,040 points
544 views
0 votes
1 answer

How can I remove a port from url for node app using nginx

If you run your node server on ...READ MORE

answered Apr 10, 2018 in DevOps on Cloud by ajs3033
• 7,300 points
4,065 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 votes
1 answer
+2 votes
1 answer
0 votes
1 answer

How to use specific node version for yarn setup in AWS deployment?

You should be able to set your ...READ MORE

answered Jul 20, 2018 in DevOps on Cloud by Kalgi
• 52,350 points
1,035 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP