Terraform Modules

Terraform Module Best Practices

Follow Official Conventions Following official conventions is especially important if the module will ever be published to the terraform module registry. Either way, we suggest following these conventions to create more standardized/portable modules. Use GitHub. For public modules that you intend to publish to the public registry, the module repos must be hosted on GitHub as a public repo. User Proper Naming. Module repository names must follow the terraform-$PROVIDER-$NAME naming convention, where $NAME is a descriptive label for the kind of infrastructure that is provisioned, and $PROVIDER is the primary provider provisioning the infrastructure (e. read more »