Introduction
Terraform modules in the private terraform registry require tags in order to be used. These tags keep track of the module version and when a module doesn't have tags, an error occurs.
Use Case
If a module is uploaded with no tags there will be an error stating "Module source repository has no tags. The source repository for the module "[module]" for provider "[provider]" has no tags and therefore failed to setup. Please read the documentation on creating modules.
To resolve this issue, a version can be created by pushing a tag in the proper format. If the module was added in error, it can also be deleted by clicking the "Delete Module" button in the top-right corner. "
Adding tags to the module once it's been uploaded may not resolve this issue. If adding the tags and pushing a new version does not resolve this problem, follow the steps below.
Procedure
1. Confirm on the VCS that the module has tags in place. If no tags are visible, add tags now.
2. Ensure that the module is not in active use in any Terraform runs.
3. Delete the module from the private module registry.
4. Re-publish the module to the private module registry.