mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-28 17:34:24 -06:00
20 lines
344 B
Terraform
20 lines
344 B
Terraform
|
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}"
|
||
|
}
|