Provides an Exoscale DNS Domain resource. This can be used to create and delete DNS Domains.

Usage example

resource "exoscale_domain" "example" {
  name = "example.net"

Argument Reference

  • name - (Required) The name of the DNS Domain.

Attributes Reference

The following attributes are exported:

  • token - A security token that can be used as an alternative way to manage DNS Domains via the Exoscale API.
  • state - The state of the DNS Domain.
  • auto_renew - Boolean indicating that the DNS Domain has automatic renewal enabled.
  • expires_on - The date of expiration of the DNS Domain, if known.


An existing DNS Domain can be imported as a resource by name:

$ terraform import exoscale_domain.example example.net

~> NOTE: importing a exoscale_domain resource will also import all related [][domainrec] resources (except NS and SOA).