Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

If you use
terraformin 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 calledterraformwill be used. To use the correct version (for now) you need to actually specify the path to where Atlantis downloads it: