Skip to content

Proposal: Allow removing key from Private data #910

@gdavison

Description

@gdavison

Module version

github.com/hashicorp/terraform-plugin-framework v1.5.0

Use-cases

Resource Private data may sometimes no longer be needed. There is currently no way to remove it.

Attempted Solutions

Setting a key to nil or "" causes an error, such as

The value being supplied for key "aws_lb_listener.importing" is invalid.
Please verify that the value is valid JSON.

Proposal

Add a corresponding function RemoveKey to *privatestate.ProviderData.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions