Skip to content

Commit fac3dfb

Browse files
authored
Update valid machine types (#465)
* deps: Bump Go patch version * Update valid machine types
1 parent 004177d commit fac3dfb

File tree

2 files changed

+79
-27
lines changed

2 files changed

+79
-27
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/terraform-linters/tflint-ruleset-google
22

3-
go 1.25.1
3+
go 1.25.3
44

55
require (
66
github.com/dave/dst v0.27.3

rules/utils.go

Lines changed: 78 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -104,30 +104,61 @@ var validMachineTypes = map[string]bool{
104104
"c3d-highcpu-180": true,
105105
"c3d-highcpu-360": true,
106106
// C4
107-
"c4-standard-2": true,
108-
"c4-standard-4": true,
109-
"c4-standard-8": true,
110-
"c4-standard-16": true,
111-
"c4-standard-32": true,
112-
"c4-standard-48": true,
113-
"c4-standard-96": true,
114-
"c4-standard-192": true,
115-
"c4-highcpu-2": true,
116-
"c4-highcpu-4": true,
117-
"c4-highcpu-8": true,
118-
"c4-highcpu-16": true,
119-
"c4-highcpu-32": true,
120-
"c4-highcpu-48": true,
121-
"c4-highcpu-96": true,
122-
"c4-highcpu-192": true,
123-
"c4-highmem-2": true,
124-
"c4-highmem-4": true,
125-
"c4-highmem-8": true,
126-
"c4-highmem-16": true,
127-
"c4-highmem-32": true,
128-
"c4-highmem-48": true,
129-
"c4-highmem-96": true,
130-
"c4-highmem-192": true,
107+
"c4-standard-2": true,
108+
"c4-standard-4": true,
109+
"c4-standard-8": true,
110+
"c4-standard-16": true,
111+
"c4-standard-24": true,
112+
"c4-standard-32": true,
113+
"c4-standard-48": true,
114+
"c4-standard-96": true,
115+
"c4-standard-144": true,
116+
"c4-standard-192": true,
117+
"c4-standard-288": true,
118+
"c4-standard-288-metal": true,
119+
"c4-standard-4-lssd": true,
120+
"c4-standard-8-lssd": true,
121+
"c4-standard-16-lssd": true,
122+
"c4-standard-24-lssd": true,
123+
"c4-standard-32-lssd": true,
124+
"c4-standard-48-lssd": true,
125+
"c4-standard-96-lssd": true,
126+
"c4-standard-144-lssd": true,
127+
"c4-standard-192-lssd": true,
128+
"c4-standard-288-lssd": true,
129+
"c4-highcpu-2": true,
130+
"c4-highcpu-4": true,
131+
"c4-highcpu-8": true,
132+
"c4-highcpu-16": true,
133+
"c4-highcpu-24": true,
134+
"c4-highcpu-32": true,
135+
"c4-highcpu-48": true,
136+
"c4-highcpu-96": true,
137+
"c4-highcpu-144": true,
138+
"c4-highcpu-192": true,
139+
"c4-highcpu-288": true,
140+
"c4-highmem-2": true,
141+
"c4-highmem-4": true,
142+
"c4-highmem-8": true,
143+
"c4-highmem-16": true,
144+
"c4-highmem-24": true,
145+
"c4-highmem-32": true,
146+
"c4-highmem-48": true,
147+
"c4-highmem-96": true,
148+
"c4-highmem-144": true,
149+
"c4-highmem-192": true,
150+
"c4-highmem-288": true,
151+
"c4-highmem-288-metal": true,
152+
"c4-highmem-4-lssd": true,
153+
"c4-highmem-8-lssd": true,
154+
"c4-highmem-16-lssd": true,
155+
"c4-highmem-24-lssd": true,
156+
"c4-highmem-32-lssd": true,
157+
"c4-highmem-48-lssd": true,
158+
"c4-highmem-96-lssd": true,
159+
"c4-highmem-144-lssd": true,
160+
"c4-highmem-192-lssd": true,
161+
"c4-highmem-288-lssd": true,
131162
// C4D
132163
"c4d-standard-2": true,
133164
"c4d-standard-4": true,
@@ -244,6 +275,8 @@ var validMachineTypes = map[string]bool{
244275
"g1-small": true,
245276
// H3
246277
"h3-standard-88": true,
278+
// H4D
279+
"h4d-highmem-192-lssd": true,
247280
// M1
248281
"m1-megamem-96": true,
249282
"m1-ultramem-40": true,
@@ -261,6 +294,9 @@ var validMachineTypes = map[string]bool{
261294
"m3-ultramem-64": true,
262295
"m3-ultramem-128": true,
263296
// M4
297+
"m4-hypermem-16": true,
298+
"m4-hypermem-32": true,
299+
"m4-hypermem-64": true,
264300
"m4-megamem-28": true,
265301
"m4-megamem-56": true,
266302
"m4-megamem-112": true,
@@ -400,6 +436,12 @@ var validMachineTypes = map[string]bool{
400436
"t2d-standard-48": true,
401437
"t2d-standard-60": true,
402438

439+
// G4
440+
"g4-standard-48": true,
441+
"g4-standard-96": true,
442+
"g4-standard-192": true,
443+
"g4-standard-384": true,
444+
403445
// A100 machine types: https://cloud.google.com/compute/docs/gpus
404446
"a2-highgpu-1g": true,
405447
"a2-highgpu-2g": true,
@@ -445,11 +487,21 @@ var validMachineTypes = map[string]bool{
445487
"ct5lp-hightpu-8t": true,
446488

447489
// Z3
490+
"z3-highmem-14-standardlssd": true,
491+
"z3-highmem-22-standardlssd": true,
492+
"z3-highmem-44-standardlssd": true,
493+
"z3-highmem-88-standardlssd": true,
494+
"z3-highmem-176-standardlssd": true,
495+
"z3-highmem-8-highlssd": true,
496+
"z3-highmem-16-highlssd": true,
497+
"z3-highmem-22-highlssd": true,
498+
"z3-highmem-32-highlssd": true,
499+
"z3-highmem-44-highlssd": true,
500+
"z3-highmem-88-highlssd": true,
501+
"z3-highmem-192-highlssd-metal": true,
448502
"z3-highmem-88": true,
449503
"z3-highmem-176": true,
450-
"z3-highmem-88-highlssd": true,
451504
"z3-highmem-176-highlssd": true,
452-
"z3-highmem-192-highlssd-metal": true,
453505

454506
// X4 machine types: https://cloud.google.com/compute/docs/memory-optimized-machines#x4_machine_types
455507
"x4-megamem-960-metal": true,

0 commit comments

Comments
 (0)