You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After performing terraform init .terraform.lock.hcl is generated
which by default is generated for the platform on which user is running terraform init
and with the help of following commands file is updated for other platforms as well
providing a way to configure default platforms for generating dependency lock will make it easy for generating it for predefined platforms by just running terraform init instead of manually fixing the file later
the possible configure option I can think of is .terraformrc
swanandvk
changed the title
Provide a way to configuration Dependency lock file generation platforms
Provide a way to configure platforms for Dependency lock file generation
May 7, 2021
Related issue: #27811 — this problem is massively amplified by terraform providers lock not using the cache.
One alternate proposal: extend the lock file syntax to include the platforms list so the logic could simply be that it will always download and lock the same platforms which were already present in the file. I'm not sure it'd be worth the compatibility hit of changing something like this:
Current Terraform Version
Use-cases
After performing
terraform init
.terraform.lock.hcl is generatedwhich by default is generated for the platform on which user is running
terraform init
and with the help of following commands file is updated for other platforms as well
Attempted Solutions
Proposal
providing a way to configure default platforms for generating dependency lock will make it easy for generating it for predefined platforms by just running
terraform init
instead of manually fixing the file laterthe possible configure option I can think of is
.terraformrc
example
References
The text was updated successfully, but these errors were encountered: