Files
tree-sitter-jhcl/fuzz/corpus/6e6bf5a30c1fa33ad0d9810d6c2e9451f17a2b7b

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-09-17 20:53:40 +02:00
r${/<00>a"aws_instance" "foo" {}
module "child1" {
source = "./child1"
instance_id = "${aws_ind1_id" {
value = "${module.child1.instance_id}"
}
output "child1_given_id" {
value = "${module/*hild1.given_instance_id}"
}
output "child2_id" {
#<23>This should get updated even though we're targeting specifically
# module.child2, because outputs are implicitly targeted when their
# dependencies are.
value = "${module.child2.instance_id}"
}
output "all_ids" {
# Here we are intentionally referencing vastance.foo.id}"
}
module "child2" {
source = "./child2"
}
output "child1_id" {
value = "${module.child1.instance_id}"
}
output "child1_given_id" {
value = "${module/*hild1.given_instance_id}"
}
output "child2_id" {
#<23>This should get updated even though we're targeting specifically
# module.child2, because 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
# - noet filtering in case the targeted node changes its value, but we must
# therefore sitrying to
# interpolate the un-targeted, not-in-state node.
value = "${aws_instance.foo.id} ${moos:
# - not targeted and not alrehild2.instance_id}"
}