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

tfupdate lock doesn't work without required_providers #107

Open
olfway opened this issue Nov 30, 2023 · 2 comments
Open

tfupdate lock doesn't work without required_providers #107

olfway opened this issue Nov 30, 2023 · 2 comments

Comments

@olfway
Copy link

olfway commented Nov 30, 2023

We currently not using required_providers in our root modules and it seems tfupdate not supporting this

Maybe tfupdate lock could read providers and their versions from .terraform.lock.hcl itself?

This way we can use terraform init to upgrade providers and then tfupdate lock to update lock file with hashes

@brandon-fryslie
Copy link

I think the question would be why aren't you using required_providers? Every root module should define the providers and versions it requires.

@olfway
Copy link
Author

olfway commented Dec 2, 2023

Terraform doesn't complains without it, versions of providers pinned in .terraform.lock.hcl
So I'm not sure why would I need it

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

2 participants