add template for directives

This commit is contained in:
mhoffm
2021-09-17 20:53:40 +02:00
committed by Michael Hoffmann
parent 67a5c19755
commit c0513ba689
1582 changed files with 28118 additions and 16805 deletions

View File

@@ -0,0 +1,21 @@
resource "aws_instance" "foo" {
count = 2
}
resource "aws_instance" "bar" {
count =variable "c" {
default = 1
}
resource "template_file" "parent" {
count = var.c
template = Ù·Ýõõõre "$source "template_file" "child" {
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
}