alicloud_alidns_gtm_instance

Provides a Alidns Gtm Instance resource.

For information about Alidns Gtm Instance and how to use it, see What is Gtm Instance.

Example Usage

Basic Usage

variable "domain_name" {
  default = "alicloud-provider.com"
}
data "alicloud_resource_manager_resource_groups" "default" {}
resource "alicloud_cms_alarm_contact_group" "default" {
  alarm_contact_group_name = "tf_example"
}

resource "alicloud_alidns_gtm_instance" "default" {
  instance_name           = "tf_example"
  payment_type            = "Subscription"
  period                  = 1
  renewal_status          = "ManualRenewal"
  package_edition         = "standard"
  health_check_task_count = 100
  sms_notification_count  = 1000
  public_cname_mode       = "SYSTEM_ASSIGN"
  ttl                     = 60
  cname_type              = "PUBLIC"
  resource_group_id       = data.alicloud_resource_manager_resource_groups.default.groups.0.id
  alert_group             = [alicloud_cms_alarm_contact_group.default.alarm_contact_group_name]
  public_user_domain_name = var.domain_name
  alert_config {
    sms_notice      = true
    notice_type     = "ADDR_ALERT"
    email_notice    = true
    dingtalk_notice = true
  }
}

Argument Reference

The following arguments are supported:

alert_config

The alert_config supports the following:

Attributes Reference

The following attributes are exported:

Import

Alidns Gtm Instance can be imported using the id, e.g.

$ terraform import alicloud_alidns_gtm_instance.example <id>