Files
hunfabric/infrastructure/net-hub-and-spoke/variables.tf
Aleksandr Averbukh 9606ceca45 Add tfvars sample
2019-10-07 18:25:23 +02:00

99 lines
2.2 KiB
HCL

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
variable "hub_project_id" {
description = "Hub Project id."
}
variable "spoke_1_project_id" {
description = "Spoke 1 Project id."
}
variable "spoke_2_project_id" {
description = "Spoke 2 Project id."
}
variable "prefix" {
description = "Prefix for VPC names."
}
variable "hub_custom_route_advertisement" {
description = "Use custom route advertisement in hub routers to advertise all spoke subnets."
default = false
}
variable "hub_bgp_asn" {
description = "Hub BGP ASN."
default = 64515
}
variable "spoke_1_bgp_asn" {
description = "Spoke 1 BGP ASN."
default = 64516
}
variable "spoke_2_bgp_asn" {
description = "Spoke 2 BGP ASN."
default = 64517
}
variable "hub_subnets" {
description = "Hub VPC subnets configuration."
default = [{
subnet_name = "subnet-a"
subnet_ip = "10.10.10.0/24"
subnet_region = "europe-west1"
},
{
subnet_name = "subnet-b"
subnet_ip = "10.10.20.0/24"
subnet_region = "europe-west2"
},
]
}
variable "spoke_1_subnets" {
description = "Spoke 1 VPC subnets configuration."
default = [{
subnet_name = "subnet-a"
subnet_ip = "10.20.10.0/24"
subnet_region = "asia-east1"
},
{
subnet_name = "subnet-b"
subnet_ip = "10.20.20.0/24"
subnet_region = "asia-northeast1"
},
]
}
variable "spoke_2_subnets" {
description = "Spoke 2 VPC subnets configuration."
default = [{
subnet_name = "subnet-a"
subnet_ip = "10.30.10.0/24"
subnet_region = "us-west1"
},
{
subnet_name = "subnet-b"
subnet_ip = "10.30.20.0/24"
subnet_region = "us-west2"
},
]
}