-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot use remote
backend on TFC using terraform 0.14.x+
#2891
Comments
@sudermanjr did this work for you using previous versions like 0.21.0? cc @lilincmu |
I believe it did, yes. The problem popped up after upgrading from 0.21 to a later version. |
@sudermanjr just to make sure this is related to the change in #2793 which was merged on Dec 15, could you try the pre-release before that change was merged If that works as expected, could you also try If you confirm it works for |
v0.22.0-pre.20221226
Interesting. I went back and tried both Edit: This is with terraform 1.3.6 - need to test other tf versions Edit2: Confirmed not working with terraform 1.1.x on any version tested - |
Hmm so when was the last atlantis this worked for you? Or is it a recent problem with the latest terraform versions? Does terraform 1.0.x plan correctly with the |
v0.22.0-pre.20221226
remote
backend on TFC
I'm honestly not sure at this point. We have a lot of different terraform repos on a lot of different versions, and I've been making changes quite a lot to try and test this. 1.0.11 doesn't seem to work either:
|
Has this always failed? If not, can you find a combination of terraform version and atlantis version that does work? Otherwise, from the looks of it, this would be impossible to diagnose / triage. :( |
Terraform 0.13.7 works with the latest pre-release |
So perhaps this is a terraform issue and not an atlantis issue then? |
The terraform repos work just fine when I don't use atlantis and run from the CLI or use Terraform's VCS integration. I can get Atlantis to work with custom workflows, but the links in Github don't get updated with the remote URL. Honestly, at this point we are most likely going to remove Atlantis entirely and just stick with terraform cloud. They have updated the VCS integration enough to make the slightly degraded git experience acceptable, and I have not had a consistently working Atlantis configuration across all repos in months. Appreciate you trying to track this down and all your time. |
remote
backend on TFCremote
backend on TFC using terraform 0.14.x+
I understand your frustration. You have created this issue and it's a real issue even if it no longer affects you. Let's keep it open and re-title it so everyone knows that this is a problem for terraform 0.14.x and higher. cc: @lilincmu in case you have run into this issue or you have thoughts on this. |
@sudermanjr actually, this is also worth reviewing. This other person had the same issue and it turned out to be a setting in his pipeline that needed to be enabled. https://discuss.hashicorp.com/t/saving-a-generated-plan-is-currently-not-supported/2116 |
Thanks for the link, but we've been using remote execution from the beginning for various security reasons. My understanding is that Atlantis is supposed to detect this error and modify how the workflow behaves in order to compensate. This used to work quite well, where we used the default workflow with remote execution and Atlantis would update the link in the github PR to point to TFCloud and then also share the plan in the PR. |
Ah interesting. Also did you know you can get more verbose logs by running the following?
That would also help for someone in the future to contribute a PR to resolve this issue. 🙏 |
Not much there to be honest, but here's a redacted version:
|
Thank you. Looks like this is a duplicate of this issue. There is a workaround here for now. |
Community Note
Overview of the Issue
I am using the pre-release from 12/26, and I still seem to have the issue with remote execution in Terraform versions greater that 1.1 (I have tried several, from 1.1.2, 1.2, and 1.3.6). I expected this to be fixed by #2793
I was able to work around the issue by overriding the plan workflow with no
-out
parameter, but the functionality is a bit reduced in Github (the link goes to Atlantis, not terraform cloud)Reproduction Steps
Using Atlantis image tag v0.22.0-pre.20221226 hooked up to Github, try planning a terraform project that uses terraform cloud as the remote backend, with remote execution enabled. Use terraform 1.3.6 (latest at time of writing)
Logs
I don't have the logs, as they have already been rotated after implementing the workaround
Environment details
Atlantis v0.22.0-pre.20221226 installed via Helm in K8s
Github
Terraform Cloud
TF Version 1.3.6
Additional Context
There have been several issues related to this. Most are linked in #2793
The text was updated successfully, but these errors were encountered: