» alicloud_dns_instance

Create an DNS Instance resource.

» Example Usage

Basic Usage

resource "alicloud_dns_instance" "this" {
    dns_security   = "no"
    domain_numbers = "2"
    period         = 1
    renew_period   = 1
    renewal_status = "ManualRenewal"
    version_code   = "version_personal"

» Argument Reference

The following arguments are supported:

  • dns_security - (Required, ForceNew) DNS security level. Valid values: no, basic, advanced.
  • domain_numbers - (Required, ForceNew) Number of domain names bound.
  • period - (Optional, ForceNew) Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
  • renew_period - (Optional, ForceNew) Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
  • renewal_status - (Optional, ForceNew) Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.
  • version_code - (Required, ForceNew) Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

» Attributes Reference

  • id - ID of the DNS instance.
  • version_name - Paid package version name.

» Import

DNS instance be imported using the id, e.g.

$ terraform import alicloud_dns_instance.example dns-cn-v0h1ldjhfff