Using bitbucket
You can clone the required terraform modules from their Bitbucket repositories and use them as local modules.
module "consul" {
source = "./consul"
}
https://www.terraform.io/language/modules/sources#local-paths
info
We don't directly use bitbucket repositories since terraform requires the repositories to be public in such cases.