module source

The source argument of a module block, which says where to get the module: a local path such as ./modules/network, the registry, or a Git address.

In more detail

Local paths are for modules in the same repository and are read directly, so the version argument is not allowed. Registry sources accept a version constraint. To pin a module kept in Git, use a tag in the source address.

Examples

source = "./modules/network"
source = "git::https://example.com/network.git?ref=v1.2.0"

Related terms

Taught in

References

Certification courses