Brian Flad
Brian Flad
Terraform CLI v1.2.3 released today will at least now correctly report the framework's error diagnostic, rather than panicking: ``` Error: failed to read schema for blox_example.test in registry.terraform.io/hashicorp/blox: failed to...
Drive-by note: Just to provide some context here, the framework should/will supply some standard plan modifiers that can handle at least primitive type default values. It'll be helpful for the...
## Provider Attribute Validation With Environment Variables Providers may need to support attributes that are configurable via Terraform configuration as well as standard vendor environment variables (e.g. `AWS_DEFAULT_REGION`, `AZURE_DEFAULTS_LOCATION`, `GITHUB_TOKEN`,...
## Attribute Default Values Resources and data sources often want to specify a default value for an attribute, so practitioners do not need to declare everything explicitly and to perform...
## Use State For Unknown Providers wishing to keep a prior state value for an `Optional` and `Computed` attribute, rather than having the framework show `(known after apply)` or more...
#306 describes a fairly common pattern about using provider configuration data to influence resource behaviors
https://github.com/hashicorp/terraform-plugin-framework/issues/157 has an example use case that this theoretical functionality could also check that configuration validation fields are not defined on schemas with no configurable attributes.
Just to capture the data point, core does not implement configurability validations, per https://github.com/hashicorp/terraform/issues/30669. We did implement "Required" and "Read-Only" checks in v0.9.0 of the framework, per #370. While looking...
Hey @megan07 👋 Are you able to provide a trace log? The `markComputedNilsAsUnknown` transformation function that gets called during plan modification might provide some clues here.
For what it is worth, checking for a null configuration value might be safest to determine whether a default value should be applied to an attribute -- only checking for...