logo
  • Blog
  • The Cloud
  • DevOps
  • Trending
    • Blockchain
    • Bitcoin
  • How To
  • Kubernetes

AWS CodeCommit: Set up Notifications

Posted on February 16, 2019
Published on: Feb 16, 2019 | Last updated on: Feb 16, 2019 |
Author: Sushil Verma Sushil Verma (Linkedin, Twitter, Git)

 3,105 total views,  12 views today

AWS CodeCommit: Set up Notifications was last modified: August 8th, 2020 by Sushil Verma
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email

AWS CodeCommit: Set up Notifications

Inception: Lean, how to send Notification based on events in CodeCommit repository

In general, you would like to set up a Notification system that should be subscribable. These notification must be triggered based on some events that are configured.

You may want to Notify a group of engineers when a commit happens, or a Pull Request got created, or Source merged, or a new Branch got created, etc.

There are the following events that can trigger notifications.

Comments

  • On commits
  • On pull requests

Approvals

  • Status changed
  • Rule override

Pull request

  • Source updated
  • Created
  • Status changed
  • Merged

Branches and tags

  • Created
  • Deleted
  • Updated

You can create one or multiple targets for same events. Like you can push Notification to a SNS topic, and at the same time you can send notification to a AWS Chatbot (Slack) channel as well.

Create a Notification Rule

Following are the steps to create a Notification rule in AWS CodeCommit repository.

  • Sign in to the AWS Management Console and open the CodeCommit repository at https://us-west-2.console.aws.amazon.com/codesuite/codecommit/repositories
  • Click on the repository for which you want to set up Notification.
  • Click on the Settings link in the left side options.
  • You can see the setting of the repository.
  • Click on the Notifications tab
  • Click on the Create Notification rule button to create a new Notification.
  • Enter the Notification Name
  • Select Detail type, you want to send in Notification.
  • Select one or more Events that trigger notifications
  • Finally create a target to send a Notification to it.
  • Submit the Notification creation.

Subscribe the Notifications

Developers and leads can subscribe to the SNS (Simple Notification Service) notification so that on event triggers they will get notified.

The following are the steps to subscribe to the notification.

  • Sign in to the AWS Management Console and open the CodeCommit repository at https://us-west-2.console.aws.amazon.com/codesuite/codecommit/repositories
  • Click on the repository of which you want to subscribe the notification.
  • Click on the Settings link in the left side options.
  • Click on Notifications tab.
  • Click on the notification rule you have created.
  • You will get Notification rule targets, if you have already configured the Notifications.
  • Click on the SNS’s Address or endpoint. It will navigate to Topics list of Amazon SNS console.
  • Click on the Topic.
  • You will see Create subscription button. Click on it.
  • There are multiple Protocol, that you can subscribe.
  • Lets make it simple and select Email, and Enter your valid email address in Endpoint text field.
  • Click on Create subscription button.
  • It will create a Subscription, and Status will show as Pending confirmation
  • Login to your email, you will receive an email with subject AWS Notification - Subscription Confirmation
  • Click on Confirm subscription link to confirm the subscription.
  • You must see Subscription confirmed! message.
  • On Subscription console, you will see status as Confirmed
  • Now any configured action will trigger a notification to SNS topic and the same will be received by all subscribers.
Conclusion: Now, you can set up a Notification based on different events occurance in CodeCommit repository. These Notification can be targeted to SNS topic and AWS Chatbot(Slack) both.

 3,104 total views,  11 views today

AWS CodeCommit: Set up Notifications was last modified: August 8th, 2020 by Sushil Verma
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email
Posted in Chaincode | Tags: CodeCommit |
« AWS CodeCommit: Securing The Repository and Branches
AWS CodeBuild: Getting Started »

Leave a comment Cancel reply

Your email address will not be published.

Latest Blogs

  • Linux: Viewing Log Messages
  • AWS CodeBuild: Getting Started
  • AWS CodeCommit: Set up Notifications
  • AWS CodeCommit: Securing The Repository and Branches
  • Managing Systemd units in Linux

Tags

Amazon EC2 AWS bash_shell bitcoin blockchain Cloud computing CodeCommit DevOps digital currency Kubernetes Linux trending ubuntu

For Improving Education

Categories

  • Amazon EC2
  • Amazon Web Services
  • AWS
  • AWS CodeCommit
  • Bash shell
  • Best Practices
  • Bitcoin
  • Blockchain
  • Chaincode
  • CLI
  • Cloud Computing
  • Cloud Security
  • CodeBuild
  • CodeCommit
  • CryptoCurrency
  • Cryptography
  • DevOps
  • Digital Currency
  • EC2 Lambda
  • Hyperledger
  • IBM Bluemix
  • IBM Garage
  • Kubernetes
  • Linux
  • Monitoring
  • OpenStack
  • Platform as a Service
  • TDD
  • Trending
  • Ubuntu
  • Virtual Server
Home | Site Map | Privacy Policy | Site Terms | Terms of use @2013, Times of Cloud.
The content is copyrighted to 'Times of Cloud' and may not be reproduced on other websites.