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 10 in DevOps on Cloud by Rishi
• 210 points
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 by Kalgi
• 41,660 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?

Related Questions In DevOps on Cloud

+2 votes
0 answers

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

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

Oct 10 in DevOps on Cloud by Rishi
• 210 points

closed Oct 11 by Kalgi 18 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,280 points
0 votes
1 answer

How to manage Application version for VM's in Azure Autoscaling group

First of all, You have to launch ...READ MORE

answered Apr 23, 2018 in DevOps on Cloud by shubham
• 6,890 points
0 votes
1 answer

Is it possible to open a bug in VSTS if release deployment fails?

You can do this by adding another ...READ MORE

answered Apr 24, 2018 in DevOps on Cloud by DareDev
• 6,810 points
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploying Code and Managing configuration with Terraform

Try one of these for your first ...READ MORE

answered Jul 23, 2018 in DevOps on Cloud by Kalgi
• 41,660 points