Creating a Tf module and publishing it to the Terraform registry
<p>Through this article you will learn to create a terraform module for a static website and publish it to the terraform registry. Before going ahead, you need to have some basic understanding of terraform.</p>
<p>Step-1:</p>
<p>Create an account on terraform registry.</p>
<p>Step-2:</p>
<p>Create a directory in your local machine following a proper naming convention like “terraform-azurerm-<name of the module>”. In this case I will use “terraform-azurerm-static-website”. Create the following files in your directory:</p>
<ol>
<li>main.tf</li>
<li>variables.tf</li>
<li>output.tf</li>
<li>versions.tf</li>
<li>readme.md</li>
</ol>
<p>Your directory must look like this:</p>
<p><a href="https://blog.devgenius.io/creating-a-tf-module-and-publishing-it-to-the-terraform-registry-e95fb468718c"><strong>Website</strong></a></p>