Steps to configure Jenkins with AWS SNS for Build Status Notification
- Create SNS Topic and Subscriptions in AWS console: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html
- Create IAM user with AmazonSNSFullAccess: https://docs.aws.amazon.com/sns/latest/dg/sns-setting-up.html
- Jenkins Configuration to update AWS IAM & SNS Values to Send Build status
a. Click Manage Jenkins from the left-hand side menu.
b. Click on Manage Plugins from the right-hand side.
c. Click on the Available tab.
d. Search for Amazon SNS Build Notifier and then check the checkbox and click the Install without restart button.
e. Go back to Manage Jenkins and then Click on Configure system.
f. Goto the Amazon SNS Notification section and Provide the AWS Access Key & AWS Secret Key also SNS Topic ARN
g. Go to your project and click on the Configure button and then Goto the Post-build Actions and Select Amazon SNS Notifier also Give the SNS Topic ARN, Subject, and Message
h. Click Apply and Save the Jenkins configuration
i. Click the Build Now button.
j. Once the build starts, you’ll get notifications in your inbox