2022-02-03 11:30:56 -08:00
|
|
|
/**
|
|
|
|
* Copyright 2022 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
# tfdoc:file:description temporary instances for testing
|
|
|
|
|
2022-07-13 04:57:03 -07:00
|
|
|
# # Untrusted (Landing)
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-landing-untrusted-primary-0" {
|
2022-02-27 01:04:20 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.landing-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.primary}-b"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-lnd-unt-pri-0"
|
2022-02-27 01:04:20 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.landing-untrusted-vpc.self_link
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.landing-untrusted-vpc.subnet_self_links["${var.regions.primary}/landing-untrusted-default-${local.region_shortnames[var.regions.primary]}"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["primary", "ssh"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-landing-untrusted-secondary-0" {
|
2022-02-03 11:30:56 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.landing-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.secondary}-a"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-lnd-unt-sec-0"
|
2022-02-03 11:30:56 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.landing-untrusted-vpc.self_link
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.landing-untrusted-vpc.subnet_self_links["${var.regions.secondary}/landing-untrusted-default-${local.region_shortnames[var.regions.secondary]}"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["secondary", "ssh"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
|
2022-07-13 04:57:03 -07:00
|
|
|
# # Trusted (hub)
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-landing-trusted-primary-0" {
|
2022-02-27 01:04:20 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.landing-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.primary}-b"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-lnd-tru-pri-0"
|
2022-02-27 01:04:20 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.landing-trusted-vpc.self_link
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.landing-trusted-vpc.subnet_self_links["${var.regions.primary}/landing-trusted-default-${local.region_shortnames[var.regions.primary]}"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["primary", "ssh"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-landing-trusted-secondary-0" {
|
2022-02-03 11:30:56 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.landing-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.secondary}-a"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-lnd-tru-sec-0"
|
2022-02-03 11:30:56 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.landing-trusted-vpc.self_link
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.landing-trusted-vpc.subnet_self_links["${var.regions.secondary}/landing-trusted-default-${local.region_shortnames[var.regions.secondary]}"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["secondary", "ssh"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
|
2022-07-13 04:57:03 -07:00
|
|
|
# # Dev spoke
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-dev-primary-0" {
|
2022-02-27 01:04:20 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.dev-spoke-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.primary}-b"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-dev-pri-0"
|
2022-02-27 01:04:20 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.dev-spoke-vpc.self_link
|
|
|
|
# # change the subnet name to match the values you are actually using
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.dev-spoke-vpc.subnet_self_links["${var.regions.primary}/dev-default-${local.region_shortnames[var.regions.primary]}"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["primary", "ssh"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-dev-secondary-0" {
|
2022-02-03 11:30:56 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.dev-spoke-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.secondary}-a"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-dev-sec-0"
|
2022-02-03 11:30:56 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.dev-spoke-vpc.self_link
|
|
|
|
# # change the subnet name to match the values you are actually using
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.dev-spoke-vpc.subnet_self_links["${var.regions.secondary}/dev-default-${local.region_shortnames[var.regions.secondary]}"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["secondary", "ssh"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
|
2022-07-13 04:57:03 -07:00
|
|
|
# # Prod spoke
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-prod-primary-0" {
|
2022-02-27 01:04:20 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.prod-spoke-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.primary}-b"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-prod-pri-0"
|
2022-02-27 01:04:20 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.prod-spoke-vpc.self_link
|
|
|
|
# # change the subnet name to match the values you are actually using
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.prod-spoke-vpc.subnet_self_links["${var.regions.primary}/prod-default-${local.region_shortnames[var.regions.primary]}"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["primary", "ssh"]
|
2022-02-27 01:04:20 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# type = "pd-balanced"
|
|
|
|
# size = 10
|
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-27 01:04:20 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
# module "test-vm-prod-secondary-0" {
|
2022-02-03 11:30:56 -08:00
|
|
|
# source = "../../../modules/compute-vm"
|
|
|
|
# project_id = module.prod-spoke-project.project_id
|
2023-02-08 00:59:43 -08:00
|
|
|
# zone = "${var.regions.secondary}-a"
|
2023-03-23 01:57:01 -07:00
|
|
|
# name = "test-vm-prod-sec-0"
|
2022-02-03 11:30:56 -08:00
|
|
|
# network_interfaces = [{
|
|
|
|
# network = module.prod-spoke-vpc.self_link
|
|
|
|
# # change the subnet name to match the values you are actually using
|
2023-02-08 00:59:43 -08:00
|
|
|
# subnetwork = module.prod-spoke-vpc.subnet_self_links["${var.regions.secondary}/prod-default-${local.region_shortnames[var.regions.secondary]}"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# }]
|
2023-02-08 00:59:43 -08:00
|
|
|
# tags = ["secondary", "ssh"]
|
2022-02-03 11:30:56 -08:00
|
|
|
# service_account_create = true
|
|
|
|
# boot_disk = {
|
2023-03-23 01:57:01 -07:00
|
|
|
# initialize_params = {
|
|
|
|
# image = "projects/debian-cloud/global/images/family/debian-10"
|
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# }
|
2022-07-13 04:57:03 -07:00
|
|
|
# options = {
|
2023-02-08 00:59:43 -08:00
|
|
|
# spot = true
|
|
|
|
# termination_action = "STOP"
|
2022-07-13 04:57:03 -07:00
|
|
|
# }
|
2022-02-03 11:30:56 -08:00
|
|
|
# metadata = {
|
|
|
|
# startup-script = <<EOF
|
|
|
|
# apt update
|
|
|
|
# apt install iputils-ping bind9-dnsutils
|
|
|
|
# EOF
|
|
|
|
# }
|
|
|
|
# }
|