Resource: aws_ssmcontacts_contact_channel

Terraform resource for managing an AWS SSM Contacts Contact Channel.

Example Usage

Basic Usage

resource "aws_ssmcontacts_contact_channel" "example" {
  contact_id = "arn:aws:ssm-contacts:us-west-2:123456789012:contact/contactalias"

  delivery_address {
    simple_address = "email@example.com"
  }

  name = "Example contact channel"
  type = "EMAIL"
}

Usage with SSM Contact

resource "aws_ssmcontacts_contact" "example_contact" {
  alias = "example_contact"
  type  = "PERSONAL"
}

resource "aws_ssmcontacts_contact_channel" "example" {
  contact_id = aws_ssmcontacts_contact.example_contact.arn

  delivery_address {
    simple_address = "email@example.com"
  }

  name = "Example contact channel"
  type = "EMAIL"
}

Argument Reference

The following arguments are required:

delivery_address

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 SSM Contact Channel using the ARN. For example:

import {
  to = aws_ssmcontacts_contact_channel.example
  id = "arn:aws:ssm-contacts:us-west-2:123456789012:contact-channel/example"
}

Using terraform import, import SSM Contact Channel using the ARN. For example:

% terraform import aws_ssmcontacts_contact_channel.example arn:aws:ssm-contacts:us-west-2:123456789012:contact-channel/example