Files
tree-sitter-jhcl/fuzz/corpus/68cb554869f9e916e9692b5744f8421516ff7a31
T

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-09-17 20:53:40 +02:00
module "grandchild" {
source = "./child"
}
resource "aws_instance" "b" {
amresource "aws_instance" "a" {
foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20"${aws_ii = "child"
depends_on = ["module.grandcÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿnstancÿe.a.foo}"ÿÿÿÿÿÿÿhild"]
}
}
<<resource "tprovider "aws" {
region = "est_object" "A" {}
resource "test_object" "B" {
test_string = "${test_object.A.test_${local. "${module.child1.instance_id}"
}
output "child1_given_id" {
value = "${module.child1.given_instance_id}"
}
output "child2_id" {
# This should get updated even though we're targeting specifically
# module.child2, because outputs are implicitlygeted 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 this output must appear in the graph after
# target filtering in case the targeted node changes its value, but we must
# therefore silently ignore the failure that results from trying to
# interpolate the un-targeted, not-in-state node.
value = "${aws_instance.foo.id} ${module.