opentofu/terraform/test-fixtures/refresh-output/main.tf
Mitchell Hashimoto 4c3923e32a terraform: return value for resource interpolation on refresh
Instead of returning UnknownVariableValue every time, attempt to return
the real value. If we don't find it, return unknown value. This fixes
removing outputs from state on refresh.
2015-04-10 13:51:22 -07:00

6 lines
89 B
HCL

resource "aws_instance" "web" {}
output "foo" {
value = "${aws_instance.web.foo}"
}