Notifications
Clear all
Topic starter
You have created a terraform script that uses a lot of new constructs that have been introduced in terraform v0.12. However, many developers who are cloning the script from your git repo, are using v0.11, and getting errors.
What can be done from your end to solve this problem?
- A . Force developer to use v0.12 by using terraform setting ‘required_version’ and set it to >=0.12.
B. Refactor the code to support both v0.11, and v0.12. It might be a difficult process, but there is no other way.
C. Add a condition in front of each such specific construct, to check whether the running terraform version id v0.11 or v0.12, and ,work accordingly.
D. Add comments in your code to tell developers to use v0.12. If they use v0.11, that should be their problem, which they need to figure out.
Suggested Answer: A
Explanation:
https://www.terraform.io/docs/configuration/terraform.html
Explanation:
https://www.terraform.io/docs/configuration/terraform.html
Posted : 08/11/2022 1:21 pm