Skip to content

Add plan check for unset value #617

@stevehipwell

Description

@stevehipwell

terraform-plugin-testing version

v1.14.0

Use cases

I want to validate that a value hasn't been set in the plan.

Attempted solutions

None of the existing methods work, so I'd need to write a custom check function.

Proposal

please add support for plancheck.ExpectNoValue("resource.instance", "attribute"). This is a specific requirement for the plan check, as the state check uses the schema.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions