W3cubDocs

/Terraform

flexibleengine_dns_zone_v2

Manages a DNS zone in the FlexibleEngine DNS Service.

Example Usage

Automatically detect the correct network

resource "flexibleengine_dns_zone_v2" "example.com" {
  name = "example.com."
  email = "[email protected]"
  description = "An example zone"
  ttl = 3000
  type = "PRIMARY"
}

Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

  • name - (Required) The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

  • email - (Optional) The email contact for the zone record.

  • type - (Optional) The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

  • attributes - (Optional) Attributes for the DNS Service scheduler. Changing this creates a new zone.

  • ttl - (Optional) The time to live (TTL) of the zone.

  • description - (Optional) A description of the zone.

  • masters - (Optional) An array of master DNS servers. For when type is SECONDARY.

  • value_specs - (Optional) Map of additional options. Changing this creates a new zone.

Attributes Reference

The following attributes are exported:

  • region - See Argument Reference above.
  • name - See Argument Reference above.
  • email - See Argument Reference above.
  • type - See Argument Reference above.
  • attributes - See Argument Reference above.
  • ttl - See Argument Reference above.
  • description - See Argument Reference above.
  • masters - See Argument Reference above.
  • value_specs - See Argument Reference above.

Import

This resource can be imported by specifying the zone ID:

$ terraform import flexibleengine_dns_zone_v2.zone_1 <zone_id>

© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/flexibleengine/r/dns_zone_v2.html