Skip to content

Commit

Permalink
docs: Add more clarification for unknown values during config validat…
Browse files Browse the repository at this point in the history
…ion (#1023)
  • Loading branch information
austinvalle authored Aug 2, 2024
1 parent 0f21b14 commit d6c8b06
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,10 @@ value. However, by the time a resource is expected to be created, read, updated,
deleted, only its computed attributes can be unknown. The rest are
guaranteed to have known values (or be null).

Provider configuration values can be unknown, and providers should handle that
situation, even if that means just returning an error.
For concepts such as resource and data source [configuration validation](/terraform/plugin/framework/validation),
this means that Terraform guarantees to call validation for a non-computed attribute
eventually with a known value, so the provider should typically avoid returning error diagnostics
when encountering an unknown value during validation.

Provider configuration values [can also be unknown](/terraform/plugin/framework/providers#unknown-values), and
providers should handle that situation, even if that means just returning an error.

0 comments on commit d6c8b06

Please sign in to comment.