Files
opentf/website/source/docs/providers/do/r/domain.html.markdown
Paul Stack 2559c19c8d Website: Adding an import section to the bottom of the page of importable resources (#7703)
* docs/digitalocean: Adding an import section to the bottom of the DO
importable resources

* docs/azurerm: Adding the Import sections for the AzureRM Importable resources

* docs/aws: Adding the import sections to the AWS provider pages
2016-07-19 17:22:30 +01:00

960 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
digitalocean DigitalOcean: digitalocean_domain docs-do-resource-domain Provides a DigitalOcean domain resource.

digitalocean_domain

Provides a DigitalOcean domain resource.

Example Usage

# Create a new domain record
resource "digitalocean_domain" "default" {
    name = "www.example.com"
    ip_address = "${digitalocean_droplet.foo.ipv4_address}"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the domain
  • ip_address - (Required) The IP address of the domain. This IP is used to created an initial A record for the domain. It is required upstream by the DigitalOcean API.

Attributes Reference

The following attributes are exported:

  • id - The name of the domain

Import

Domains can be imported using the domain name, e.g.

terraform import digitalocean_domain.mydomain mytestdomain.com