-
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
feat: Support project-level Terraform distribution selection #5167
Conversation
Add support for terraform_distribution config value in project config. This config value behaves similarly to terraform_version whereby defaults taken from the server config will be overridden by project-level values. Also refactor to prevent terraform client slightly to prevent cyclical dependencies. Signed-off-by: Andrew Borg <[email protected]>
@abborg thanks for the contribution, please gives us some time to review. |
@abborg, can you update the relevant documentation in the |
Signed-off-by: Andrew Borg <[email protected]>
I've updated the relevant documentation. Please let me know if there's any further changes desired. |
Signed-off-by: Andrew Borg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @abborg. Just a few suggestions.
There are some test failures too: https://github.com/runatlantis/atlantis/actions/runs/12394308257/job/34599029347?pr=5167 |
@X-Guardian I should be able to apply your suggestions and fix remaining test failures later today. |
Edit: I was able to checkout the previous head, make the correct signoff and then push the changes. |
Signed-off-by: Andrew Borg <[email protected]>
Signed-off-by: Andrew Borg <[email protected]>
It looks like this relates to the OpenTofu epic #3741 - does this also provide a resolution to Support OpenTofu auto download #4339? (I'm not one of the Atlantis developers, just an interested Atlantis user starting to experiment with OpenTofu - and this is very exciting to see!) |
I believe that prior to these proposed changes, the distribution used as the server default could be auto-downloaded. The OpenTofu downloader uses the tofudl package to resolve version constraints and download the corresponding version. The Terraform downloader uses hc-install. However, it would not be currently possible to auto-download both OpenTofu and Terraform. With these proposed changes, auto-downloading both distributions would be supported provided the projects specified the appropriate distribution and version combination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, nice contribution!
…ntis#5167) Signed-off-by: Andrew Borg <[email protected]> Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: Simon Heather <[email protected]> Signed-off-by: kvanzuijlen <[email protected]>
…ntis#5167) Signed-off-by: Andrew Borg <[email protected]> Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: Simon Heather <[email protected]> Signed-off-by: Lukas Peter Aldershaab <[email protected]>
what
terraform_distribution
project config valueterraform_distribution
config value overrides server defaultwhy
tests
references
Supports #3741