Files
tree-sitter-jhcl/fuzz/corpus/16d0ef4d1b1c012aa09dba6c47961a54dba0920d
2021-09-19 12:00:18 +02:00

38 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
resource "aws_instance" "foo" {}
module "child1" {
so@rce = "./child1"
instance_id = "${aws_instance.foo.id}"
}
module "child2" {
source = "./child2"
}
output "child1_id" {
value = "${module.ce outputs are implicitly targeted when their
# dependencies are.
value = "${module.child2.instance_id}"
}
output "all_ids" {
# Here we are intentionally referencing values covering three different scenarios:
# - not targeted and not already in state
# - not targeted and already in state
# - targeted
# This is important because`0Íìtput must appear in the graph after
# targJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJet filtering in case the targeted node changes its value, but we must
# therefore silently ignore the failuvariable "foo" {}
re that results from trying to
# interpolate the un-targeted, not-in-state node.
value = "${aws_instance.foo.id} resource "aws_instancÿÿÿÿÿÿÿÿÿÿÿÿÿÿ${module.child÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ1.instance_id} ${module.child2.iÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿe" "foo" {*
ami = var.foo
lifecycle {
ignore_changes = [ami]
nstance_id}}"
}
}