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

0.13.0 - Is it possible to suppress or hide the "will be read during apply" messages for data resources? #25805

Closed
mendhak opened this issue Aug 11, 2020 · 3 comments
Labels
enhancement new new issue not yet triaged v0.13 Issues (primarily bugs) reported against v0.13 releases

Comments

@mendhak
Copy link

mendhak commented Aug 11, 2020

Current Terraform Version

Terraform v0.13.0

Use-cases

We are using terraform as part of a CI pipeline. As part of code review, we review the output of terraform plan to make sure nothing bad's about to happen.

Problem - in v0.13.0, many data resources are showing up in the terraform plan output with a "will be read during apply" message, even if there are no changes. So far we see if for (AWS) KMS secrets, ACM certificates, Route Tables, Subnets. Example:

# module.xxx.yyy.zzz will be read during apply
# (config refers to values not yet known)

data "aws_acm_certificate" "example" {
arn = "..."
domain = "*.example.com"
~ id = "2020-08-11 13:14:36.7163237 +0000 UTC" -> "2020-08-11 13:14:39.5159431 +0000 UTC"
most_recent = false
statuses = [
"ISSUED",
]
tags = {}
}

We have a lot of data resources that refer to resources not in our control. The plan is now quite noisy and difficult to follow.

Is there a way to suppress the "will be read during apply" messages for data resources in Terraform plan?
If it's not possible, can this feature be introduced?

Attempted Solutions

I'm unsure what to do, I checked the changelogs but I see no notes about the data resource output during plan phase I tried searching these threads, but it's not clear to me why the output is appearing and how to suppress it.

@mendhak mendhak added enhancement new new issue not yet triaged labels Aug 11, 2020
@mendhak mendhak changed the title Is it possible to suppress or hide the "will be read during apply" messages for data resources? 0.13.0 - Is it possible to suppress or hide the "will be read during apply" messages for data resources? Aug 11, 2020
@jbardin
Copy link
Member

jbardin commented Aug 11, 2020

Hi @mendhak,

Thanks for filing the issue. In general, correctly working data sources should not show up in the plan when there are no changes to the data source configuration or depends_on references. These particular data sources should be reported to the associated provider so they can be fixed.

Thanks!

@mendhak
Copy link
Author

mendhak commented Aug 12, 2020

Thanks, I've just seen an issue filed here in terraform provider aws:

hashicorp/terraform-provider-aws#14579

And I see you've opened a separate issue:

#25812

So I'll close this off as any real progress can be tracked in those two places.

@mendhak mendhak closed this as completed Aug 12, 2020
@ghost
Copy link

ghost commented Sep 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new new issue not yet triaged v0.13 Issues (primarily bugs) reported against v0.13 releases
Projects
None yet
Development

No branches or pull requests

2 participants