57 lines
945 B
Plaintext
57 lines
945 B
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_plate_rinstance.bar.equi*.res_new id)}P
|
|||
|
|
}
|
|||
|
|
= true
|
|||
|
|
}
|
|||
|
|
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 "child2_id" {
|
|||
|
|
# This shoulprovider "aws" {
|
|||
|
|
te = join(}
|
|||
|
|
|
|||
|
|
locals {
|
|||
|
|
foo = "bar"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "foo" {
|
|||
|
|
value = "${local.foo}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
resourfce "aws_instoo.idance" "=<3D><><EFBFBD>
|
|||
|
|
# This sho}"
|
|||
|
|
}
|
|||
|
|
uld get updated even
|