Files
tree-sitter-jhcl/fuzz/corpus/hashicorp%terraforminternal%terraform%testdata%apply-targeted-module-unrelated-outputs%child1%main.tf
2021-09-19 12:00:18 +02:00

18 lines
428 B
HCL

variable "instance_id" {
}
output "instance_id" {
# The instance here isn't targeted, so this output shouldn't get updated.
# But it already has an existing value in state (specified within the
# test code) so we expect this to remain unchanged afterwards.
value = "${aws_instance.foo.id}"
}
output "given_instance_id" {
value = "${var.instance_id}"
}
resource "aws_instance" "foo" {
foo = "${var.instance_id}"
}