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

using terraform_version_constraint in terragrunt.hcl doesn't seem to cause terraform version to change #220

Closed
MicNim opened this issue Apr 5, 2022 · 1 comment · Fixed by #356
Assignees

Comments

@MicNim
Copy link

MicNim commented Apr 5, 2022

func installFromConstraint(tfconstraint *string, custBinPath, mirrorURL *string) {

Working on implementing the "terraform_version_constraint" config for a stack that will uses multiple versions of terraform.

The current deployment consists of 3 modules

module1 = terraform 0.14
module2 = terraform 0.14
module3 = terraform 0.13.6

Running 'terragrunt run-all init' elicits the following error:
The currently installed version of Terraform (0.14.0) is not compatible with the version Terragrunt requires (>= 0.13, < 0.14).

System versions:

terragrunt v0.36.3
tgswitch 0.5.389

terraform v0.14.0
tfswitch 0.13.1218

It's my expectation that when the "terraform_version_constraint" config is used then tfswitch will install the required version depending on the logical module being deployed?

Have I misunderstood the documentation/code, please help!

@warrensbox
Copy link
Owner

@eldiablorojo what happens when you run tfswitch in the same directory as the version.tf?

@warrensbox warrensbox self-assigned this May 25, 2022
@MatrixCrawler MatrixCrawler linked a pull request Apr 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants