Which module source types exist and where does `version` apply?

IntermediateConceptModules
Answer

Local paths (./modules/vpc), the Terraform Registry, GitHub and generic Git URLs, Mercurial, HTTP URLs, S3 and GCS buckets. The version argument only works for registry sources. For Git, pin with ?ref=v1.4.2.

source = "git::https://github.com/acme/tf-modules.git//vpc?ref=v1.4.2"

The double slash selects a subdirectory.

All Terraform questions Roadmap: Terraform

More on Modules