Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jbardin opened this issue Feb 19, 2025 · 0 comments
Open

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

jbardin opened this issue Feb 19, 2025 · 0 comments

Comments

@jbardin
Copy link
Member

jbardin commented Feb 19, 2025

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

@jbardin jbardin added enhancement new new issue not yet triaged cli and removed new new issue not yet triaged labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant