public module

A reusable module published to the Terraform Registry, called by an address such as terraform-aws-modules/vpc/aws.

In more detail

The address is namespace, name and provider. A public module is code you choose to run, so review its source, inputs, outputs, providers, maintainers and changelog before adopting it, and pin its version. It belongs in your dependency inventory like a provider.

Example

module "network" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "5.0.0"
}

Related terms

Taught in

References

Certification courses