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

Support Terraform 1.4 #2066

Open
Matt343 opened this issue Aug 21, 2023 · 2 comments
Open

Support Terraform 1.4 #2066

Matt343 opened this issue Aug 21, 2023 · 2 comments

Comments

@Matt343
Copy link

Matt343 commented Aug 21, 2023

The current version limits are set to disallow terraform >= 1.4

@kapilt
Copy link
Contributor

kapilt commented Aug 21, 2023

yeah.. its a bit painful, I've brought this up before with @jamesls before about not doing this pin, when I wrote the terraform support for it, and in subsequent convos.

otoh hashicorp going bsl does, make me wonder about a pin below <= 1.5.5

@jeffersonferrari
Copy link

I hope this helps someone, but I just added a method to manipulate the JSON generated by Chalice. This is working fine for me with Terraform version 1.7.4

import json

config_file = "file path"
new_version = "1.7.4"

with open(config_file, "r") as file:
    config = json.load(file)

config["terraform"]["required_version"] = new_version

with open(config_file, "w", encoding="utf-8") as f:
    json.dump(config, f, ensure_ascii=False, indent=2)

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

No branches or pull requests

3 participants