-
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
Atlantis doesn't detect terraform version #1747
Comments
hmm... have u considered having workflow13 workflow14 workflow15... etc ? As you say you don't want to pin on the modules itself, but i guess its quite a good practice that you pin latest gen-version to the workflow ? :) |
got a PR that should fix the issue @micborens feel free to try please :) |
https://www.runatlantis.io/docs/terraform-versions.html#via-terraform-config Yes you have to set the exact version of terraform that you want if you want the terraform config block to set the terraform version used by atlantis. Considering the changes the breaking changes that have come in tiny releases (major.minor.tiny) of terraform, it's not really a waste of time to specify the exact version you want to use. This specific example isn't really a good one anyway because |
The main blocker of having to use different workflows per project are:
|
is this still an issue with |
Yeap, that's still the case. It's according to the documentation, that only 'exact' version is matched. But it be awesome to do it automatically. |
I believe this is a duplicate of #1217. Let's thread the conversation there. I'll close for now unless anyone disagrees. |
btw. you can also use tenv that support Terraform as well as OpenTofu (and Terragrunt :) ) in one tool. It allow you to simplify version management and can do much more, than tfswitch. |
Atlantis support this via |
Community Note
Overview of the Issue
Hello i'm facing an issue with Atlantis. I have different project which are running in terraform 0.15 or 1.0.
But atlantis doesn't detect properly the required_version specified in .tf file
My atlantis.yaml
project_name_1
is using terrafom0.15
project_name_2
is using terraform1.0
Reproduction Steps
Logs
Provide log files from Atlantis server
I'm running Atlantis in
v0.17.2
I didn't setup
defaultTFVersion
in the helm chart deployment because i have my required version in my terraform file.I don't want to freeze the terraform version in the atlantis.yaml to continue to be dynamic with my
required_version
.I tested to freeze completly the terraform version (required_version = "0.15.5") and it works. BUT i don't want to waste time to update patch version of terraform.
Is there a feature request to detect terraform version like
tfswitch
tool is doing?If you can help me. 🙏
The text was updated successfully, but these errors were encountered: