alicloud_cms_alarm_contact

Creates or modifies an alarm contact. For information about alarm contact and how to use it, see What is alarm contact.

Example Usage

Basic Usage

# You need to activate the link before you can return to the alarm contact information, otherwise diff will appear in terraform. So please confirm the activation link as soon as possible. Besides, you can ignore the diff of the alarm contact information by `lifestyle`. 
resource "alicloud_cms_alarm_contact" "example" {
  alarm_contact_name = "tf-example"
  describe           = "For example"
  channels_mail      = "terraform@test.com"
  lifecycle {
    ignore_changes = [channels_mail]
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Alarm contact can be imported using the id, e.g.

$ terraform import alicloud_cms_alarm_contact.example abc12345