terraform { required_providers { google = { source = "hashicorp/google" version = "5.23.0" } } } data "google_compute_image" "image_ubuntu" { family = "ubuntu-2204-lts" project = "ubuntu-os-cloud" } resource "google_compute_instance" "vm_instance" { name = "${var.base_name}-jumphost" machine_type = "n2d-standard-4" zone = var.zone boot_disk { initialize_params { image = data.google_compute_image.image_ubuntu.self_link } } network_interface { subnetwork = var.subnetwork access_config { } } service_account { scopes = ["compute-ro"] } labels = var.labels metadata = { serial-port-enable = "TRUE" } metadata_startup_script = <