Pipeline Notifications

New

Get notified when deployments succeed or fail via Email, Slack, and GitHub

Overview

Set up comprehensive deployment notifications to stay informed about your CI/CD pipeline status. This guide covers three notification channels:

ChannelWhat You GetBest For
Email (SNS)Email when pipeline succeeds or failsPersonal notifications, audit trail
SlackMessages posted to a channelTeam visibility, quick response
GitHub StatusCommit badges (✓ or ✗)PR reviews, deployment tracking

Architecture

The notification system uses AWS EventBridge to capture CodePipeline state changes, then routes events to SNS (email) and a Lambda function (Slack + GitHub).

Setup Steps

1

Create Prerequisites

Set up Slack webhook and GitHub token for notifications.

2

Deploy CloudFormation Stack

Deploy the notification infrastructure using AWS CloudFormation.

3

Confirm Email Subscription

Click the confirmation link in your email to activate SNS notifications.

4

Test Notifications

Push a commit to trigger the pipeline and verify notifications work.

1. Slack Webhook (Optional)

Create an incoming webhook to post deployment notifications to a Slack channel:

  1. Go to https://api.slack.com/apps
  2. Click Create New AppFrom scratch
  3. Name: AWS Pipeline Notifications
  4. Select your workspace
  5. Go to Incoming Webhooks → Toggle Activate
  6. Click Add New Webhook to Workspace
  7. Select the channel for notifications
  8. Copy the webhook URL (starts with https://hooks.slack.com/services/...)

Slack Webhook Format

Your webhook URL should look like: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

2. GitHub Personal Access Token (Optional)

Create a token to update commit status badges on your repository:

  1. Go to https://github.com/settings/tokens
  2. Click Generate new token (classic)
  3. Note: AWS Pipeline Status
  4. Select scope: repo:status (only this is needed)
  5. Click Generate token
  6. Copy the token immediately (you won't see it again)

Token Security

The GitHub token will be stored securely in AWS Secrets Manager, not in plain text. Never commit tokens to your repository.

AWS Deployment Guide — Built with Next.js