AWS CodeStar Notifications Notifications Notification Rule

This page shows how to write Terraform and CloudFormation for AWS CodeStar Notifications Notifications Notification Rule and write them securely.

aws_codestarnotifications_notification_rule (Terraform)

The Notifications Notification Rule in AWS CodeStar Notifications can be configured in Terraform with the resource name aws_codestarnotifications_notification_rule. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

notifications.tf#L25
resource "aws_codestarnotifications_notification_rule" "pipeline" {
  detail_type = "FULL"
  event_type_ids = [
    "codepipeline-pipeline-manual-approval-needed",
    "codepipeline-pipeline-action-execution-failed",
    # "codepipeline-pipeline-manual-approval-succeeded",
main.tf#L7
resource "aws_codestarnotifications_notification_rule" "codepipeline" {
  detail_type = "BASIC"

  event_type_ids = [
    "codepipeline-pipeline-action-execution-succeeded",
    "codepipeline-pipeline-action-execution-failed",
notifications.tf#L5
resource "aws_codestarnotifications_notification_rule" "commits" {
  detail_type = "FULL"
  event_type_ids = [
    "codepipeline-pipeline-pipeline-execution-failed",
    "codepipeline-pipeline-pipeline-execution-canceled",
    "codepipeline-pipeline-pipeline-execution-started",

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a CodeStar Notifications Rule.

AWS::CodeStarNotifications::NotificationRule (CloudFormation)

The NotificationRule in CodeStarNotifications can be configured in CloudFormation with the resource name AWS::CodeStarNotifications::NotificationRule. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as AWS Chatbot topics or AWS Chatbot clients configured for Slack) where you want to receive them.

Frequently asked questions

What is AWS CodeStar Notifications Notifications Notification Rule?

AWS CodeStar Notifications Notifications Notification Rule is a resource for CodeStar Notifications of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS CodeStar Notifications Notifications Notification Rule?

For Terraform, the EqualsGroup/bulk-email-node, KazuyaMiyagi/terraform-aws-rocket-chat-notifier and wand2016/twitter-counter-api-generator-deploy-pipeline source code examples are useful. See the Terraform Example section for further details.