This is a temporary article created to clarify one point in the online manual, and it is applicable for both Terraform Enterprise and Terraform Cloud private module registries
Terraform Cloud and Terraform enterprise have a feature called - private registry - ( PMR for short ) - that works similarly to the public Terraform Registry and helps you share Terraform providers and Terraform modules across your organization. It includes support for versioning, a searchable list of available providers and modules, and a configuration designer to help you build new workspaces faster.
While to publish module or its version you will need to define a tag in the VCS , the same is not applicable to deletion. The manual for the PMR states the only possible way :
- You can delete individual versions of a module or the entire module. If deleting a module version would leave a module with no versions, Terraform Cloud will remove the entire module.
E.g. deleting a tag from the repository backing up the module, will not automatically remove the module version from the PMR.
Additional Information:
-
Full documentation on module publishing and deleting can be found here : https://www.terraform.io/cloud-docs/registry/publish