docs: Explicitly mention states should not contain unknown values (#34491)

Reference: https://github.com/hashicorp/terraform-plugin-testing/issues/262

This is a quick documentation update to the Resource Instance Change Lifecycle page to explicitly call out that unknown values are never permitted in any resource instance state.
This commit is contained in:
Brian Flad 2024-01-25 15:17:29 +01:00 committed by GitHub
parent a9b43f332e
commit 7958dc1e77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,6 +247,8 @@ information as the **Previous Run State** but does so in a way that conforms
to the current version of the resource type schema, which therefore allows
Terraform Core to interact with the data fully for subsequent steps.
No unknown values are permitted in the **Updated State**.
### ReadResource
Although Terraform typically expects to have exclusive control over any remote
@ -289,7 +291,7 @@ following two situations for each attribute:
This operation returns the **Prior State** to use for the next call to
`PlanResourceChange`, thus completing the circle and beginning this process
over again.
over again. No unknown values are permitted in the **Prior State**.
## Handling of Nested Blocks in Configuration