Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit b98cc14

Browse files
committed
Upgrade VM shape to N4 and enable virtualisation
1 parent 9105347 commit b98cc14

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

tofu/module/compute_engine.tf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ resource "google_compute_router_nat" "nat" {
4141
}
4242

4343
resource "google_compute_instance_template" "runner" {
44+
disk {
45+
disk_size_gb = 14 + 4
46+
disk_type = "hyperdisk-balanced"
47+
provisioned_iops = 3000
48+
provisioned_throughput = 140
49+
source_image = "projects/ubuntu-os-cloud/global/images/family/ubuntu-minimal-2404-lts-amd64"
50+
}
51+
4452
machine_type = var.machine_type
4553

46-
disk {
47-
disk_size_gb = 14 + 4
48-
disk_type = "pd-standard"
49-
source_image = "projects/ubuntu-os-cloud/global/images/family/ubuntu-minimal-2404-lts-amd64"
54+
advanced_machine_features {
55+
enable_nested_virtualization = true
5056
}
5157

5258
metadata = {

tofu/module/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variable "domain" {
88
}
99

1010
variable "machine_type" {
11-
default = "n2d-standard-4"
11+
default = "n4-standard-4"
1212
}
1313

1414
variable "region" {

tofu/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variable "domain" {
88
}
99

1010
variable "machine_type" {
11-
default = "n2d-standard-4"
11+
default = "n4-standard-4"
1212
}
1313

1414
variable "project" {

0 commit comments

Comments
 (0)