# This code is compatible with Terraform 4.25.0 and versions that are backwards compatible to 4.25.0. # For information about validating this Terraform code, see https://developer.hashicorp.com/terraform/tutorials/gcp-get-started/google-cloud-platform-build#format-and-validate-the-configuration resource "google_compute_instance" "instance" { boot_disk { auto_delete = true device_name = "instance" initialize_params { image = "projects/debian-cloud/global/images/debian-12-bookworm-v20241210" size = 10 type = "pd-balanced" } mode = "READ_WRITE" } can_ip_forward = false deletion_protection = false enable_display = false labels = { goog-ec-src = "vm_add-tf" } machine_type = "n2d-highcpu-8" name = "instance" network_interface { access_config { network_tier = "PREMIUM" } ipv6_access_config { external_ipv6_prefix_length = "0" network_tier = "PREMIUM" } queue_count = 0 stack_type = "IPV4_IPV6" subnetwork = "projects/wise-trainer-445015-m3/regions/asia-east2/subnetworks/asia-east2" } scheduling { automatic_restart = true on_host_maintenance = "MIGRATE" preemptible = false provisioning_model = "STANDARD" } service_account { email = "935064248986-compute@developer.gserviceaccount.com" scopes = ["https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring.write", "https://www.googleapis.com/auth/service.management.readonly", "https://www.googleapis.com/auth/servicecontrol", "https://www.googleapis.com/auth/trace.append"] } shielded_instance_config { enable_integrity_monitoring = true enable_secure_boot = false enable_vtpm = true } zone = "asia-east2-b" }