terraform-aws-codepipeline-slack-notifications

Github Actions

A terraform module to set up Slack notifications for your AWS CodePipelines. Available through the Terraform registry.

image

Usage

resource "aws_codepipeline" "example" {
  // ...
}

module "codepipeline_notifications" {
  source  = "kjagiello/codepipeline-slack-notifications/aws"
  version = "1.0.0"

  name          = "codepipeline-notifications"
  namespace     = "kjagiello"
  stage         = "sandbox"
  slack_url     = "https://hooks.slack.com/services/(...)"
  slack_channel = "#notifications"
  codepipelines = [
    aws_codepipeline.example,
  ]
}

Inputs

Name Description Type Default Required
attributes List of attributes to add to label list [] no
codepipelines CodePipeline resources that should trigger Slack notifications list n/a yes
name Name (unique identifier for app or service) string n/a yes
namespace Namespace (e.g. skynet) string n/a yes
slack_channel A slack channel to send the deployment notifications to string n/a yes
slack_emoji The emoji avatar of the user that sends the notifications string ":rocket:" no
slack_url Slack webhook URL for deploy notifications string n/a yes
slack_username The name of the user that sends the notifications string "Deploy Bot" no
stage Stage (e.g. prod, dev, staging) string n/a yes