Skip to content

Commit

Permalink
Add a documentation entry for CNAME records (hashicorp#123)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
  • Loading branch information
modular-magician authored and rileykarson committed Nov 19, 2018
1 parent 008a505 commit 1956c13
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/docs/r/dns_record_set.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,23 @@ 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:
Expand Down

0 comments on commit 1956c13

Please sign in to comment.