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
It does not work if you switch from one version to another as the
registry.terraform.io/hashicorp/azurerm/index.json
only has one(latest) version and so the cache only will use this ..even if more other versions would be available in the cache which is populated by history.
e.g
{
"versions": {
"2.78.0": {}
}
}
that network storage upload would need to merge the index
The text was updated successfully, but these errors were encountered:
You are correct, if you were maintaining this on a networking mirror, you would probably need to do the following:
Update the version used in code
Run the terraform providers mirror command again with the same output directory
Upload the resulting files (index.json will automatically be updated
I'm sure this solution could be scripted out and run as the version you use for providers is updated. You could also keep a set of terraform configs that only define the providers you use in your environment and run terraform providers mirror against each config with the same target output directory as mention in the official docs:
If you wish to create a mirror with providers for a number of different Terraform configurations, run terraform providers mirror in each configuration in turn while providing the same output directory each time. Terraform will then merge together all of the requirements into a single set of JSON indices.
https://github.com/ned1313/terraform-tuesdays/blob/main/2021-01-19-Mirroring/commands.sh
It does not work if you switch from one version to another as the
registry.terraform.io/hashicorp/azurerm/index.json
only has one(latest) version and so the cache only will use this ..even if more other versions would be available in the cache which is populated by history.
e.g
{
"versions": {
"2.78.0": {}
}
}
that network storage upload would need to merge the index
The text was updated successfully, but these errors were encountered: