mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 17:46:43 +00:00
1.3 KiB
1.3 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_dns_managed_zone | docs-google-datasource-dns-managed-zone | Provides access to the attributes of a zone within Google Cloud DNS |
google_dns_managed_zone
Provides access to a zone's attributes within Google Cloud DNS. For more information see the official documentation and API.
data "google_dns_managed_zone" "env_dns_zone" {
name = "qa-zone"
}
resource "google_dns_record_set" "dns" {
name = "my-address.${data.google_dns_managed_zone.env_dns_zone.dns_name}"
type = "TXT"
ttl = 300
managed_zone = "${data.google_dns_managed_zone.env_dns_zone.name}"
rrdatas = ["test"]
}
Argument Reference
-
name
- (Required) A unique name for the resource. -
project
- (Optional) The ID of the project for the Google Cloud DNS zone.
Attributes Reference
The following attributes are exported:
-
dns_name
- The fully qualified DNS name of this zone, e.g.terraform.io.
. -
description
- A textual description field. -
name_servers
- The list of nameservers that will be authoritative for this domain. Use NS records to redirect from your DNS provider to these names, thus making Google Cloud DNS authoritative for this zone.