Skip to content

Commit feb4c48

Browse files
committed
Dlexible Compute shapes are identified dynamically
1 parent caa2d79 commit feb4c48

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

servers.tf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
locals {
2-
compute_flexible_shapes = [
3-
"VM.Standard.E3.Flex",
4-
"VM.Standard.E4.Flex",
5-
"VM.Optimized3.Flex",
6-
"VM.Standard.A1.Flex"
7-
]
2+
compute_flexible_shapes = toset([for s in data.oci_core_shapes.compute_flexible_shapes.shapes: s.name if s.is_flexible])
83
}
4+
95
locals {
106

117
is_servers_shape_flexible = contains(local.compute_flexible_shapes, var.servers_shape)

0 commit comments

Comments
 (0)