add template for directives
This commit is contained in:
33
fuzz/corpus/9345ab20c761c7123e1d5945109bf0286e2d30ed
Normal file
33
fuzz/corpus/9345ab20c761c7123e1d5945109bf0286e2d30ed
Normal file
@@ -0,0 +1,33 @@
|
||||
# expressions with variabreference
|
||||
variable "foo" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
for_each = toset(
|
||||
[for i in range(0,3) : sha1("${i}${var.foo}")]
|
||||
)
|
||||
foo = "foo"
|
||||
}
|
||||
|
||||
# referencing another resource, which means it has some unknown values i?n it
|
||||
resource "awsle reference
|
||||
variable "foo" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
for_each = toset(
|
||||
[for i in range(0,3) : sha1("${i}${var.foo}")]
|
||||
)
|
||||
foo = "foo"
|
||||
}
|
||||
|
||||
# referencing another resource, which means it has some unknown values i?n it
|
||||
resource "aws_instance" "one" {
|
||||
for_each = toset(["a", "b"])
|
||||
}
|
||||
|
||||
resource "aws_instance" "two" {
|
||||
for_each = aws_instance.one
|
||||
}
|
||||
Reference in New Issue
Block a user