fix dns peering example in doc

This commit is contained in:
Ludovico Magnocavallo 2021-01-11 12:29:29 +01:00
parent dcbbf924f3
commit 4e8fbbc54a
2 changed files with 29 additions and 22 deletions

View File

@ -48,7 +48,7 @@ module "private-dns" {
name = "test-example" name = "test-example"
domain = "test.example." domain = "test.example."
client_networks = [var.vpc.self_link] client_networks = [var.vpc.self_link]
peer_network = var.peer_vpc.self_link peer_network = var.vpc2.self_link
} }
# tftest:modules=1:resources=1 # tftest:modules=1:resources=1
``` ```

View File

@ -14,6 +14,20 @@
# common variables used for examples # common variables used for examples
variable "bucket" {
default = "bucket"
}
variable "billing_account_id" {
default = "billing_account_id"
}
variable "kms_key" {
default = {
self_link = "kms_key_self_link"
}
}
variable "organization_id" { variable "organization_id" {
default = "organizations/1122334455" default = "organizations/1122334455"
} }
@ -22,26 +36,15 @@ variable "project_id" {
default = "projects/project-id" default = "projects/project-id"
} }
variable "billing_account_id" {
default = "billing_account_id"
}
variable "bucket" {
default = "bucket"
}
variable "region" { variable "region" {
default = "region" default = "region"
} }
variable "zone" { variable "service_account" {
default = "zone"
}
variable "vpc" {
default = { default = {
name = "vpc_name" id = "service_account_id"
self_link = "vpc_self_link" email = "service_account_email"
iam_email = "service_account_iam_email"
} }
} }
@ -54,16 +57,20 @@ variable "subnet" {
} }
} }
variable "kms_key" { variable "vpc" {
default = { default = {
self_link = "kms_key_self_link" name = "vpc_name"
self_link = "vpc_self_link"
} }
} }
variable "service_account" { variable "vpc2" {
default = { default = {
id = "service_account_id" name = "vpc2_name"
email = "service_account_email" self_link = "vpc2_self_link"
iam_email = "service_account_iam_email"
} }
} }
variable "zone" {
default = "zone"
}