Closed andormarkus closed 3 years ago
@andormarkus Thanks for the issue submission. Since TF is sensitive to cli version compatibility with existing deployments. We've decided to not implement the latest version install by default. We have added the capability to define the version to install to allow for specific installs and prevent backward compatibility errors.
Closing this issue.
Is your feature request related to a problem? Please describe. In the current implementation when a new TF version came out you have to update your CircleCI pipeline to accommodate these changes.
Describe the solution you'd like New boolean variable in the
install.yml
. Name like "terraform_latest" default value: false. If the value set to true then the<< parameters.terraform_version >>
is overwrittenif [[ << parameters.terraform_latest >> == "dev" ]] then https://checkpoint-api.hashicorp.com/v1/check/terraform wget https://releases.hashicorp.com/terraform/<< parameters.terraform_version >>/terraform_<< parameters.terraform_version >>_linux_amd64.zip else wget https://releases.hashicorp.com/terraform//{{ version }}/terraform_{{ version }}_linux_amd64.zip unzip terraform_{{ version }}_linux_amd64.zip fi
Additional context I'll be happy to submit a PR if you like these changes