How does a local module path work?
BeginnerConceptModules
Answer
source = "./modules/vpc" is relative to the calling module's directory. Terraform treats it as part of the same repo, so no version is allowed. It is the simplest way to start and to share code inside a mono-repo.
More on Modules
What is a Terraform module and why use one?BeginnerHow do you call a module?BeginnerHow do inputs and outputs work with modules?BeginnerWhich module source types exist and where does `version` apply?IntermediateHow should you version and pin modules?IntermediateCan you use `count` and `for_each` on modules?Intermediate