mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
Add a documentation entry for CNAME records (#2144)
CNAME records must only have a single rrdatas entry corresponding to the intended Canonical Name of the record.
This commit is contained in:
parent
de8cb6100a
commit
df00d973f9
|
@ -117,6 +117,26 @@ resource "google_dns_managed_zone" "prod" {
|
|||
}
|
||||
```
|
||||
|
||||
### Adding a CNAME record
|
||||
|
||||
The list of `rrdatas` should only contain a single string corresponding to the Canonical Name intended.
|
||||
|
||||
```hcl
|
||||
resource "google_dns_record_set" "cname" {
|
||||
name = "frontend.${google_dns_managed_zone.prod.dns_name}"
|
||||
managed_zone = "${google_dns_managed_zone.prod.name}"
|
||||
type = "CNAME"
|
||||
ttl = 300
|
||||
|
||||
rrdatas = ["frontend.mydomain.com."]
|
||||
}
|
||||
|
||||
resource "google_dns_managed_zone" "prod" {
|
||||
name = "prod-zone"
|
||||
dns_name = "prod.mydomain.com."
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
|
Loading…
Reference in New Issue
Block a user