Skip to content

Commit f894d32

Browse files
committed
fix: update x86 build disks as well
1 parent e0912a5 commit f894d32

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

amazon-amd64-nix.pkr.hcl

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,32 @@ source "amazon-ebssurrogate" "source" {
122122

123123
ena_support = true
124124
launch_block_device_mappings {
125-
device_name = "/dev/xvdf"
125+
device_name = "/dev/xvdf"
126126
delete_on_termination = true
127-
volume_size = 10
128-
volume_type = "gp3"
127+
volume_size = 20
128+
volume_type = "gp3"
129+
iops = 10000
130+
throughput = 1000
129131
}
130132

131133
# NOTE: /dev/xvdh is mounted as /data (PostgreSQL data/WAL). The 1 GiB size
132134
# is a minimal default for this AMI; consumers should override this volume
133135
# size at launch.
134136
launch_block_device_mappings {
135-
device_name = "/dev/xvdh"
137+
device_name = "/dev/xvdh"
136138
delete_on_termination = true
137-
volume_size = 1
138-
volume_type = "gp3"
139+
volume_size = 1
140+
volume_type = "gp3"
139141
}
140142

141143
launch_block_device_mappings {
142144
device_name = "/dev/${var.build-vol}"
143145
delete_on_termination = true
144-
volume_size = 16
145-
volume_type = "gp2"
146+
volume_size = 20
147+
volume_type = "gp3"
146148
omit_from_artifact = true
149+
iops = 10000 # Added for build performance
150+
throughput = 1000 # Added for build performance
147151
}
148152

149153
run_tags = {
@@ -173,11 +177,11 @@ source "amazon-ebssurrogate" "source" {
173177
ssh_timeout = "5m"
174178

175179
ami_root_device {
176-
source_device_name = "/dev/xvdf"
177-
device_name = "/dev/xvda"
180+
source_device_name = "/dev/xvdf"
181+
device_name = "/dev/xvda"
178182
delete_on_termination = true
179-
volume_size = 10
180-
volume_type = "gp2"
183+
volume_size = 10
184+
volume_type = "gp3"
181185
}
182186

183187
associate_public_ip_address = true

amazon-arm64-nix.pkr.hcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ source "amazon-ebssurrogate" "source" {
177177
ssh_timeout = "5m"
178178

179179
ami_root_device {
180-
source_device_name = "/dev/xvdf"
181-
device_name = "/dev/xvda"
180+
source_device_name = "/dev/xvdf"
181+
device_name = "/dev/xvda"
182182
delete_on_termination = true
183-
volume_size = 10
184-
volume_type = "gp3"
183+
volume_size = 10
184+
volume_type = "gp3"
185185
}
186186

187187
associate_public_ip_address = true

0 commit comments

Comments
 (0)