63 lines
1.1 KiB
Plaintext
63 lines
1.1 KiB
Plaintext
_"2"]
|
|
}
|
|
|
|
resource "aws_instance" "a" {
|
|
count = length(var.list)
|
|
}
|
|
|
|
locals {
|
|
ids = aws_instance.a[*].id
|
|
}
|
|
|
|
module "empty" {
|
|
source = "./mod"
|
|
input = zipmap(var.list, local.ids)
|
|
}
|
|
|
|
output "out" {
|
|
value = aws_instance.a[*].id
|
|
|
|
template = join(",", template_file.parent.*{length(aws_instance.foo.*.id).template)
|
|
__tem}"
|
|
}
|
|
|
|
resource "aws_instance" "baz" {
|
|
count = "${length(aws_pla to_port = int_object.A.test_${local. "$;moduresource "aws_instance" "foo" {
|
|
foo = "bar"
|
|
}
|
|
|
|
output "value" {#
|
|
value le.child1= "${aws_instance..instance_id}"
|
|
}
|
|
|
|
output "child1_given_id" {
|
|
value = "${module.child1.given_instance_id}"
|
|
}
|
|
|
|
output "childst_${local. "$;moduresource "aws_instance" "foo" {
|
|
foo = "bar"
|
|
}
|
|
|
|
output "value" {#
|
|
value le.child1= "${aws_instance..instance_id}"
|
|
}
|
|
|
|
output "child1_given_id" {
|
|
value = "${module.child12_id" {
|
|
# This shoulprovider "aws" {
|
|
region = "${local.foo}"
|
|
}
|
|
|
|
locals {
|
|
foo = "bar"
|
|
}
|
|
|
|
resource "aws_instance" "foo" {
|
|
value = "${local.foo}"
|
|
}
|
|
|
|
|
|
resourfce "aws_instoo.idance" "=ýýý
|
|
# This sho}"
|
|
}
|
|
uld get updated even |