Skip to content

Data sources within check blocks don't need to be displayed in plan UI #36536

@jbardin

Description

@jbardin

Terraform Version

v1.10

Use Cases

The plan renderer will show data sources in full during the plan if they are contained within a check block. Some data sources may contain huge amounts of data, obscuring the plan output. These are prefaced with the comment

  # (config will be reloaded to verify a check block)

but because this is only a data source, there is no possible diff to render and it only shows the entire state of the data resource.

Attempted Solutions

Data sources outside the block can referenced from within the check, but that then does not use the data source to confirm the final apply result as designed. The primary reason for check blocks is to contain scoped data sources.

Proposal

If there are no failing checks, and the data source is going to be reloaded again, there is no need to display the data.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions