add template for directives
This commit is contained in:
24
fuzz/corpus/294f53cb93a631d9fa3998ac55478cee49aefb81
Normal file
24
fuzz/corpus/294f53cb93a631d9fa3998ac55478cee49aefb81
Normal file
@@ -0,0 +1,24 @@
|
||||
resource "aws_instance" "foo" {
|
||||
count = 2
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
count =variable "c" {
|
||||
default = 1
|
||||
}
|
||||
|
||||
resource "template_file" "parent" {
|
||||
count = var.c
|
||||
template = "Hi"
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user