Terraform resource for managing an AWS SSM Contact.
resource "aws_ssmcontacts_contact" "example" {
alias = "alias"
type = "PERSONAL"
depends_on = [aws_ssmincidents_replication_set.example]
}
resource "aws_ssmcontacts_contact" "example" {
alias = "alias"
display_name = "displayName"
type = "ESCALATION"
tags = {
key = "value"
}
depends_on = [aws_ssmincidents_replication_set.example]
}
The following arguments are required:
alias
- (Required) A unique and identifiable alias for the contact or escalation plan. Must be between 1 and 255 characters, and may contain alphanumerics, underscores (_
), and hyphens (-
).
type
- (Required) The type of contact engaged. A single contact is type PERSONAL and an escalation
plan is type ESCALATION.
The following arguments are optional:
display_name
- (Optional) Full friendly name of the contact or escalation plan. If set, must be between 1 and 255 characters, and may contain alphanumerics, underscores (_
), hyphens (-
), periods (.
), and spaces.
tags
- (Optional) Map of tags to assign to the resource.
This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name (ARN) of the contact or escalation plan.
tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.
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}