You know the time you spend on your infrastructure can be too much, and sometimes you create infrastructure as code there will be cool to reuse between your projects, in this case, you can copy/paste your infrastructure files and maintain it for each project and begin wasting of hours of work or you can use Terraform Modules for reusing your repeated infrastructure as code (IaC) files and share with your colleague.
Terraform Modules can be downloaded or referenced from Terraform Public Registry, Private Registry, or Your local system. Using the local system can only be recommended when you are testing your module out and before its ready to publish else I will recommend the Public or a Private registry for your Terraform Modules.
In this article I will help you to work with modules locally, so you can get started using the Terraform Modules.