-
Notifications
You must be signed in to change notification settings - Fork 1.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
Autodownloading Terraform 1.8.2 breaks Atlantis entirely #4471
Comments
One possible workaround can be to set https://www.runatlantis.io/docs/server-configuration.html#tf-download to false for the time being. |
I believe this is a duplicate of #4472 or the other way around. Either way, I hope you can find this comment helpful: #4472 (comment) |
My team's workaround as suggested by #4472 (comment) is pinning the required version in our main.tf. Annoying if you have large project environments. Will use this until this is fixed. Previous main.tf:
Pinned main.tf:
I'm not on the latest version of atlantis helm release but it looks like you might be able to leverage
|
If you have 1000s of root dirs, without having to modify anything, one quick and dirty solution would be to softlink This is what I did to unblock devs for now ln -sf /atlantis/bin/terraform1.8.1 /atlantis/bin/terraform1.8.2 repos:
- id: /.*/
# temp fix for https://github.com/runatlantis/atlantis/issues/4471
pre_workflow_hooks:
- description: Temporary hack for post-terraform 1.8.1
run: |
ln -sf /atlantis/bin/terraform1.8.1 /atlantis/bin/terraform1.8.2
# ... This is a hack like Fernando mentioned. It's meant as a stop-gap for a better solution. |
that's one horrible hack |
Yes, agreed, it is a horrible hack. |
Hi there As a workaround, we setting on the variables environment the follow value
|
that wont work if your project are in different versions. |
As I said, it's a workaround and worked for us. |
Thanks @bezarsnba for sharing. To other members experiencing issues, please be open minded to these workarounds. I know many are frustrated. These are all temporary fixes to allow the app to work as expected until a better solution is available. Please see the above linked PR #4474 for a better solution that should work for all use-cases. |
I have also proposed a small fix. |
I agree that there should be a long-term, proper fix, and the sooner the better. However, while we are at the topic we should address a couple more issues:
|
@stasostrovskyi Thank you for the version-pin PR. Do you plan to trigger a release for this to make the change available for users? |
I'm not doing release myself, but the fix was already cherry picked to |
here is slightly cleaner method than @nitrocode 's method(overwriting another version.) here is my helm values examples i hops this will helps who struggles to get work with cleaner methods initConfig:
# -- Install providers/plugins into a path shared with the Atlantis pod.
enabled: true
image: alpine:latest
imagePullPolicy: IfNotPresent
# -- SharedDir is set as env var INIT_SHARED_DIR.
sharedDir: /plugins
workDir: /tmp
# -- Size for the shared volume.
sizeLimit: 100Mi
# -- Security context for the container.
securityContext: {}
# -- Script to run on the init container.
# @default -- Check values.yaml.
script: |
#!/bin/sh
wget https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_amd64.zip
unzip terraform_1.8.2_linux_amd64.zip terraform
cp /tmp/terraform ${INIT_SHARED_DIR}/terraform1.8.2
ls -la ${INIT_SHARED_DIR} |
upstream issue - hashicorp/terraform#35075 |
It looks like #4474 went out in release 0.27.3 |
I added @radeksimko's comment regarding One issue I have with I expressed my concerns in the PR here #4494 |
What is the fix for this, because none of what i tried in the comments worked |
@RahmanBadru - I found a simple work around that we are using until such time that I have a chance to update atlantis to the latest version. Using this as a reference: I updated the It's not a great option if you have a lot of repos, but it works for us as we only have a handful of repos to deal with in terms of using atlantis. Hope this helps. |
Did you try upgrading to |
Yeah i did, i use helm though, so i guess i have to bump the chart version |
I will try that, thanks |
Community Note
Overview of the Issue
Hashicorp just released Terraform v1.8.2 with a breaking change to the release, by including a license file with the packaged version:
Reproduction Steps
atlantis plan
oratlantis
apply with an unpinned terraform versionLogs
Environment details
Additional Context
See #4472 (comment)
The text was updated successfully, but these errors were encountered: