-
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
Document that custom workflows don't use correct terraform version #639
Comments
We faced this issue last week when updated to Atlantis v0.8.0, and solved it by executing the custom commands with the project-specific Terraform version like this:
|
@lkysow I think it might be a bit more annoying that having to specify the path where the version you want lives in your workflow. If the version you request is not downloaded yet, it looks like it won't be available for the custom workflow. Is there any way to force the download in the custom workflow ? |
For the docker image, It also looks like newly downloaded binaries are added in |
We should add |
Do you mean in the |
I was thinking doing it in the actual run_step_runner because we shouldn't assume everyone's using our Docker image. RE bug, yes that sounds good as another ticket. |
Was this ticket opened? |
it is now, sorry for the delay |
I've been taking a quick look at the It doesn't look like |
My implementation thoughts:
|
That makes sense to me. Let me try to take a stab at this |
* Allow repo to select which workflow to use * Hack to work around runatlantis/atlantis#639
Seems that projects listed in repository I use custom workflow, but without custom commands for plan/apply. |
If you use
terraform
in your custom workflow, exAtlantis won't use the version of terraform specified via
terraform_version
. Instead it is just runningsh -c "terraform init"
so whatever binary is calledterraform
will be used. To use the correct version (for now) you need to actually specify the path to where Atlantis downloads it:The text was updated successfully, but these errors were encountered: