google_certificate_manager_dns_authorization

DnsAuthorization represents a HTTP-reachable backend for a DnsAuthorization.

Open in Cloud Shell

Example Usage - Certificate Manager Dns Authorization Basic

resource "google_certificate_manager_dns_authorization" "default" {
  name        = "dns-auth"
  location    = "global"
  description = "The default dns"
  domain      = "subdomain.hashicorptest.com"
}

output "record_name_to_insert" {
 value = google_certificate_manager_dns_authorization.default.dns_resource_record.0.name
}

output "record_type_to_insert" {
 value = google_certificate_manager_dns_authorization.default.dns_resource_record.0.type
}

output "record_data_to_insert" {
 value = google_certificate_manager_dns_authorization.default.dns_resource_record.0.data
}
Open in Cloud Shell

Example Usage - Certificate Manager Dns Authorization Regional

resource "google_certificate_manager_dns_authorization" "default" {
  name        = "dns-auth"
  location    = "us-central1"
  description = "reginal dns"
  type        = "PER_PROJECT_RECORD"
  domain      = "subdomain.hashicorptest.com"
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

The dns_resource_record block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

DnsAuthorization can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/dnsAuthorizations/{{name}}"
  to = google_certificate_manager_dns_authorization.default
}

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

$ terraform import google_certificate_manager_dns_authorization.default projects/{{project}}/locations/{{location}}/dnsAuthorizations/{{name}}
$ terraform import google_certificate_manager_dns_authorization.default {{project}}/{{location}}/{{name}}
$ terraform import google_certificate_manager_dns_authorization.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.