mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
0e3256b6f4
This example demonstrates both creating a network architecture *and* the use of data resources to minimize the number of variables needed for a child module by discovering additional data automatically.
28 lines
310 B
HCL
28 lines
310 B
HCL
variable "region_numbers" {
|
|
default = {
|
|
us-east-1 = 1
|
|
us-west-1 = 2
|
|
us-west-2 = 3
|
|
eu-west-1 = 4
|
|
}
|
|
}
|
|
|
|
variable "az_numbers" {
|
|
default = {
|
|
a = 1
|
|
b = 2
|
|
c = 3
|
|
d = 4
|
|
e = 5
|
|
f = 6
|
|
g = 7
|
|
h = 8
|
|
i = 9
|
|
j = 10
|
|
k = 11
|
|
l = 12
|
|
m = 13
|
|
n = 14
|
|
}
|
|
}
|