This PR changes variable region's default value in example tests to real region value. Some of the modules parse the region name to decide whether to create regional or zonal resources.
97 lines
1.9 KiB
HCL
97 lines
1.9 KiB
HCL
# Copyright 2023 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
|
|
#
|
|
# http://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.
|
|
|
|
# common variables used for examples
|
|
|
|
variable "bucket" {
|
|
default = "bucket"
|
|
}
|
|
|
|
variable "billing_account_id" {
|
|
default = "123456-123456-123456"
|
|
}
|
|
|
|
variable "group_email" {
|
|
default = "organization-admins@example.org"
|
|
}
|
|
|
|
variable "kms_key" {
|
|
default = {
|
|
id = "kms_key_self_link"
|
|
}
|
|
}
|
|
|
|
variable "organization_id" {
|
|
default = "organizations/1122334455"
|
|
}
|
|
|
|
variable "folder_id" {
|
|
default = "folders/1122334455"
|
|
}
|
|
|
|
variable "prefix" {
|
|
default = "test"
|
|
}
|
|
|
|
variable "project_id" {
|
|
default = "project-id"
|
|
}
|
|
|
|
variable "region" {
|
|
default = "europe-west8"
|
|
}
|
|
|
|
variable "service_account" {
|
|
default = {
|
|
id = "service_account_id"
|
|
email = "service_account_email"
|
|
iam_email = "service_account_iam_email"
|
|
}
|
|
}
|
|
|
|
variable "subnet" {
|
|
default = {
|
|
name = "subnet_name"
|
|
region = "subnet_region"
|
|
cidr = "subnet_cidr"
|
|
self_link = "subnet_self_link"
|
|
}
|
|
}
|
|
|
|
variable "vpc" {
|
|
default = {
|
|
name = "vpc-name"
|
|
self_link = "projects/xxx/global/networks/aaa"
|
|
id = "projects/xxx/global/networks/aaa"
|
|
}
|
|
}
|
|
|
|
variable "vpc1" {
|
|
default = {
|
|
name = "vpc-name"
|
|
self_link = "projects/xxx/global/networks/bbb"
|
|
}
|
|
}
|
|
|
|
variable "vpc2" {
|
|
default = {
|
|
name = "vpc2-name"
|
|
self_link = "projects/xxx/global/networks/ccc"
|
|
}
|
|
}
|
|
|
|
variable "zone" {
|
|
default = "zone"
|
|
}
|