/** * 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 # # dmz (Landing) # module "test-vm-dmz-primary-0" { # source = "../../../modules/compute-vm" # project_id = module.landing-project.project_id # zone = "${var.regions.primary}-b" # name = "test-vm-lnd-unt-pri-0" # network_interfaces = [{ # network = module.dmz-vpc.self_link # subnetwork = module.dmz-vpc.subnet_self_links["${var.regions.primary}/dmz-default-${local.region_shortnames[var.regions.primary]}"] # }] # tags = ["primary", "ssh"] # service_account_create = true # boot_disk = { # initialize_params = { # image = "projects/debian-cloud/global/images/family/debian-10" # } # } # options = { # spot = true # termination_action = "STOP" # } # metadata = { # startup-script = <