mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-01 06:00:15 -05:00
* command/jsonstate: fix inconsistency with resource address Resource addresses in state output were not including index for instances created with for_each or count, while the index was appearing in the plan output. This PR fixes that inconsistency, adds tests, and updates the existing tests. Fixes #24110 * add tests showing expected prior state resource addressing * added example of show json state output with modules
14 lines
226 B
HCL
14 lines
226 B
HCL
variable "test_var" {
|
|
default = "bar"
|
|
}
|
|
|
|
// There is a single instance in state. The plan will add a resource.
|
|
resource "test_instance" "test" {
|
|
ami = var.test_var
|
|
count = 2
|
|
}
|
|
|
|
output "test" {
|
|
value = var.test_var
|
|
}
|