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

Add section dedicated to versions.tf #50

Open
mloskot opened this issue Nov 24, 2023 · 0 comments
Open

Add section dedicated to versions.tf #50

mloskot opened this issue Nov 24, 2023 · 0 comments

Comments

@mloskot
Copy link

mloskot commented Nov 24, 2023

Handling of versions.tf is simple in a simple single directory/module project, but as a project becomes complex, starts using in-house as well as third-party modules, then versions.tf raise numerous questions on where those are needed, where recommended, etc.

@apparentlymart offered an excellent explanation in the How to set up versions.tf at root level of directory thread:

The key thing to note here is that the version constraints are a per-module idea and so should ideally be included in every directory that contains .tf files, describing which Terraform and provider versions each specific module is compatible with. There is no expectation that all of your modules would declare the same requirements, because each one will be using different features of Terraform and different provider features.

I think this deserves a place in any collection of Terraform best practices.

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

1 participant