mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 03:32:54 -06:00
20 lines
344 B
HCL
20 lines
344 B
HCL
variable "amis_in" {
|
|
type = "map"
|
|
default = {
|
|
"us-west-1" = "ami-123456"
|
|
"us-west-2" = "ami-456789"
|
|
"eu-west-1" = "ami-789012"
|
|
"eu-west-2" = "ami-989484"
|
|
}
|
|
}
|
|
|
|
module "test" {
|
|
source = "./amodule"
|
|
|
|
amis = "${var.amis_in}"
|
|
}
|
|
|
|
output "amis_from_module" {
|
|
value = "${module.test.amis_out}"
|
|
}
|