Revert "Bump github.com/hashicorp/terraform-plugin-framework from 1.16.0 to 1.16.1 in the terraform-devex group across 1 directory" #44520
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts #44493
The additional error diagnostics added in this version have uncovered some discrepancies between how the AWS provider implemented resource identity support for Plugin Framework resources, and the expectations held by the upstream library. Specifically, the library assumes that a resource implements the
ResourceWithIdentityinterface when identity is fully supported, and always returns a non-nil schema.In versions
v6.0.0to current, the provider has implemented anIdentitySchemamethod on all Plugin Framework resources by wrapping the base resource implementation, therefore satisfying theResourceWithIdentityinterface. A resource was only considered supported when the schema contained greater than 0 attributes.This difference in assumptions went undetected to this point because the upstream library allowed null identities to be written to state, as would be the case with any resource which the provider considered "unimplemented" but plugin framework would treat as implemented with an empty identity schema (0 attributes). With the introduction of new error diagnostics for this case, the provider will need to refactor how Plugin Framework resources are wrapped before proceeding with the upgrade of this package.
Relates hashicorp/terraform-plugin-framework#1193
Example of a newly failing test with this library upgrade.