Open LuigiClemente-Awin opened 3 years ago
Hi,
As a workaround you could specify the full path to the terraform binary downloaded by atlantis. The following should work : /home/atlantis/.atlantis/bin/terraform${ATLANTIS_TERRAFORM_VERSION}
@LuigiClemente-Awin as @dhaven said, you have to append ${ATLANTIS_TERRAFORM_VERSION}
to the terraform command. Atlantis does not change symlinks to what is the active terraform binary version, it just uses that environment variable. The only reason this may have "worked" for you in atlantis 0.16.1 is that 0.14.5 was the default terraform version then anyway.
I guess that if u set the right terraform_version within the tf, and remove it from atlantis.yaml https://github.com/runatlantis/atlantis/pull/1776 this should fix your scenario.
https://www.runatlantis.io/docs/terraform-versions.html has a v
prefix to the terraform version. Does that help?
I am having issues after upgrading my docker image to Atlantis 0.17.0. I am using an atlantis.yaml configuration to pin the terraform version for a specific project:
In the custom workflow I check the tf version:
I see that now the version set is ignored and it is using the default 0.15.1:
This was working fine in 0.16.1. I reverted to Atlantis version 0.16.1 and the configured Terraform version is used:
Thanks,
Luigi