-
Notifications
You must be signed in to change notification settings - Fork 374
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
Configuring provider using another resource's outputs does not work on second run on Terraform v0.14.x #652
Comments
@mcanevet Is this still an issue for you in v2.0.2 of the provider? |
@redeux @jrhouston I still have the issue with Terraform 0.14.6 and provider 2.0.2. Note that I also had the issue with Terraform v0.14.x and provider v1.x, so it's probably related to a change in Terraform behavior. |
So I had an extremely similar issue to this one, exactly the same 2 errors. After a ton of unnecessary debugging (had I realized the problem 🤦), I found I had a module which was out of place (which had a helm_release) and apparently was causing it to run first, prior to it's dependencies and in this case the module that provided the kubernetes variables. I had refactored a bit of my terraform code and forgot to move the helm release to the correct location. Again, not sure if this is the problem in this case but I thought I would share in hopes it would help others. tip: you can look through your terraform state ( Hope this helps 🌮 |
OK, I found my issue. I was running |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Provider configuration:
Expected Behavior
Subsequent
terraform apply
should work.Actual Behavior
First apply completes:
But subsequent applies fails when refreshing the file
helm_release
resource:Important Factoids
It works well with Terraform v0.13.x.
Helm provider is configured using another resource's outputs, but somehow it tries to read kubeconfig.
Community Note
The text was updated successfully, but these errors were encountered: