Resource: aws_ssmcontacts_contact

Terraform resource for managing an AWS SSM Contact.

Example Usage

Basic Usage

resource "aws_ssmcontacts_contact" "example" {
  alias = "alias"
  type  = "PERSONAL"

  depends_on = [aws_ssmincidents_replication_set.example]
}

Usage With All Fields

resource "aws_ssmcontacts_contact" "example" {
  alias        = "alias"
  display_name = "displayName"
  type         = "ESCALATION"

  tags = {
    key = "value"
  }

  depends_on = [aws_ssmincidents_replication_set.example]
}

Argument Reference

The following arguments are required:

The following arguments are optional:

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

import {
  to = aws_ssmcontacts_contact.example
  id = "{ARNValue}"
}

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

% terraform import aws_ssmcontacts_contact.example {ARNValue}