add template for directives
This commit is contained in:
24
fuzz/corpus/f64d5986bc047b8a6098cf0a1be1c55e21f3ec35
Normal file
24
fuzz/corpus/f64d5986bc047b8a6098cf0a1be1c55e21f3ec35
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