Skip to content
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

Download version of terraform in atlantis.yaml #120

Closed
matthieu-swu opened this issue May 3, 2018 · 2 comments
Closed

Download version of terraform in atlantis.yaml #120

matthieu-swu opened this issue May 3, 2018 · 2 comments
Labels
feature New functionality/enhancement

Comments

@matthieu-swu
Copy link

Hello,

It would be awesome if we didnt have to install the version of terraform present in the atlantis.yaml file , but instead having atlantis download the version specified and use it.

Cheers

@lkysow lkysow added the feature New functionality/enhancement label May 7, 2018
@lkysow
Copy link
Member

lkysow commented May 7, 2018

That's a great idea! I love it.

@majormoses
Copy link
Contributor

majormoses commented Aug 25, 2018

It should be pretty trivial to do (I do this currently in jenkins via wget and unzip):

# setup terraform version
TFVER="0.11.7" # change me if needed
wget --no-clobber https://releases.hashicorp.com/terraform/"$TFVER"/terraform_"$TFVER"_linux_amd64.zip
unzip terraform_"$TFVER"_linux_amd64.zip
export TERRAFORM_PATH="$(pwd)/terraform"
"$TERRAFORM_PATH" --version

I am also working on a chef cookbook to manage all the things atlantis related and you can find similar logic here for URL building to download: https://github.com/majormoses/atlantis-chef/blob/8edc22005f4bf42d09eb7eeaf01c1599980ce487/libraries/helpers.rb#L32-L35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

No branches or pull requests

3 participants