-
Notifications
You must be signed in to change notification settings - Fork 992
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.kubernetes_service should fetch values in "plan" phase rather than "apply" phase #353
Comments
Please note that really If I replace |
This might rather be a general limitation of hashicorp/terraform-provider-archive#11 Yes, this is actually the problem. Fixed by replacing
|
@heidemn thanks for that post, was driving myself crazy with something similar. This fixed it for me, as well. |
@heidemn lovely. this was killing me. i dunno why i didnt think about making an implicit dep! |
Terraform Version
Terraform v0.11.11
Affected Resource(s)
Expected Behavior
"terraform plan" should first contact Kubernetes to fetch the data values, then identify that nothing has changed, and report "no changes".
Similar for "terraform apply": Only report that changes will be made if there are actually any changes.
This seems to work fine for AWS data sources, but not for
data.kubernetes_service
.This is bad, because when you run
terraform apply
, you have no idea if changes will be made or not.Actual Behavior
Instead, "terraform apply" says, "We don't know yet what we'll do, we first have to talk to Kubernetes,
Please confirm.
We'll then apply the changes immediately, if any, and tell you afterwards..."
More specific, Terraform shows a section "<= read (data resources)".
This section is useless to me; rather the data resources should be read first, and the result should be immediately used when calculating the plan.
See below:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
1, Run
terraform apply
2. Don't make any changes.
2. Run
terraform apply
again, or runterraform plan
Important Factoids
Setting up DNS for EKS cluster.
Code
Result of "terraform apply"
The text was updated successfully, but these errors were encountered: