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.

All Terraform questions Roadmap: Terraform

More on Modules