Use Terraform v0.12 syntax in ingress docs

* Drop string interpolation in Google Cloud A records
shown in Nginx ingress addon docs
* Retain string interpolation syntax for CNAME records
since Google Cloud DNS expects records to end in "."
(some clouds add it automatically)
This commit is contained in:
Dalton Hubble 2019-06-29 13:50:49 -07:00
parent 9a395dbf88
commit 307aaf5e30
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ resource "google_dns_record_set" "some-application" {
name = "app.example.com." name = "app.example.com."
type = "A" type = "A"
ttl = 300 ttl = 300
rrdatas = ["${module.azure-ramius.ingress_static_ipv4}"] rrdatas = [module.azure-ramius.ingress_static_ipv4]
} }
``` ```
@ -158,7 +158,7 @@ resource "google_dns_record_set" "app-record-a" {
name = "app.example.com." name = "app.example.com."
type = "A" type = "A"
ttl = 300 ttl = 300
rrdatas = ["${module.google-cloud-yavin.ingress_static_ipv4}"] rrdatas = [module.google-cloud-yavin.ingress_static_ipv4]
} }
resource "google_dns_record_set" "app-record-aaaa" { resource "google_dns_record_set" "app-record-aaaa" {
@ -169,6 +169,6 @@ resource "google_dns_record_set" "app-record-aaaa" {
name = "app.example.com." name = "app.example.com."
type = "AAAA" type = "AAAA"
ttl = 300 ttl = 300
rrdatas = ["${module.google-cloud-yavin.ingress_static_ipv6}"] rrdatas = [module.google-cloud-yavin.ingress_static_ipv6]
} }
``` ```