How do you publish a module to the public registry?

IntermediateConceptModules
Answer

Host it in a public GitHub repository named terraform-<PROVIDER>-<NAME> (for example terraform-aws-vpc), with a root main.tf, README.md, and push semver tags like v1.0.0. Sign in to the registry with GitHub and publish the repo. Private registries in HCP Terraform use the same naming and tag conventions.

All Terraform questions Roadmap: Terraform

More on Modules