google_clouddomains_registration

Registers a new domain name and creates a corresponding Registration resource.

To get more information about Registration, see:

Example Usage - Clouddomains Registration Full

resource "google_clouddomains_registration" my_registration {
  domain_name = "example-domain.com"
  location    = "global"
  labels = {
    labelkey = "labelvalue"
  }
  yearly_price {
    currency_code = "USD"
    units         = 12
  }
  dns_settings {
    custom_dns {
      name_servers = [
        "ns-cloud-a1.googledomains.com.", 
        "ns-cloud-a2.googledomains.com.", 
        "ns-cloud-a3.googledomains.com.", 
        "ns-cloud-a4.googledomains.com."
      ]
    }
  }
  contact_settings {
    privacy = "REDACTED_CONTACT_DATA"
    registrant_contact {
      phone_number = "+12345000000"
      email        = "user@example.com"
      postal_address {
        region_code         = "US"
        postal_code         = "95050"
        administrative_area = "CA"
        locality            = "Example City"
        address_lines       = ["1234 Example street"]
        recipients          = ["example recipient"]
      }
    }
    admin_contact {
      phone_number = "+12345000000"
      email        = "user@example.com"
      postal_address {
        region_code         = "US"
        postal_code         = "95050"
        administrative_area = "CA"
        locality            = "Example City"
        address_lines       = ["1234 Example street"]
        recipients          = ["example recipient"]
      }
    }
    technical_contact {
      phone_number = "+12345000000"
      email        = "user@example.com"
      postal_address {
        region_code         = "US"
        postal_code         = "95050"
        administrative_area = "CA"
        locality            = "Example City"
        address_lines       = ["1234 Example street"]
        recipients          = ["example recipient"]
      }
    }
  }
}

Argument Reference

The following arguments are supported:

The yearly_price block supports:

The contact_settings block supports:

The registrant_contact block supports:

The postal_address block supports:

The admin_contact block supports:

The postal_address block supports:

The technical_contact block supports:

The postal_address block supports:


The management_settings block supports:

The dns_settings block supports:

The custom_dns block supports:

The ds_records block supports:

The glue_records block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Registration can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Registration using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/registrations/{{domain_name}}"
  to = google_clouddomains_registration.default
}

When using the terraform import command, Registration can be imported using one of the formats above. For example:

$ terraform import google_clouddomains_registration.default projects/{{project}}/locations/{{location}}/registrations/{{domain_name}}
$ terraform import google_clouddomains_registration.default {{project}}/{{location}}/{{domain_name}}
$ terraform import google_clouddomains_registration.default {{location}}/{{domain_name}}

User Project Overrides

This resource supports User Project Overrides.