Resource: aws_devopsguru_notification_channel

Terraform resource for managing an AWS DevOps Guru Notification Channel.

Example Usage

Basic Usage

resource "aws_devopsguru_notification_channel" "example" {
  sns {
    topic_arn = aws_sns_topic.example.arn
  }
}

Filters

resource "aws_devopsguru_notification_channel" "example" {
  sns {
    topic_arn = aws_sns_topic.example.arn
  }

  filters {
    message_types = ["NEW_INSIGHT"]
    severities    = ["HIGH"]
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

sns Argument Reference

filters Argument Reference

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import DevOps Guru Notification Channel using the id. For example:

import {
  to = aws_devopsguru_notification_channel.example
  id = "id-12345678"
}

Using terraform import, import DevOps Guru Notification Channel using the id. For example:

% terraform import aws_devopsguru_notification_channel.example id-12345678