Skip to content

Instantly share code, notes, and snippets.

@eerkunt
Created February 26, 2020 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eerkunt/3e97c71e6b0de251c6ee24a0f3386df7 to your computer and use it in GitHub Desktop.
Save eerkunt/3e97c71e6b0de251c6ee24a0f3386df7 to your computer and use it in GitHub Desktop.
how to source a terraform module from a mono-repo
module "from_mono_repo" {
source = "git::ssh://git@gibhu.com/<myorganisation>/<myrepository>.git//<my_module_dir>"
...
}
module "from_mono_repo_with_tags" {
source = "git::ssh://git@gibhu.com/<myorganisation>/<myrepository>.git//<my_module_dir>?ref=1.2.4"
...
}
module "from_micro_repo" {
source = "git::ssh://git@gibhu.com/<myorganisation>/<my_module_repository>.git"
...
}
module "from_micro_repo_with_tags" {
source = "git::ssh://git@gibhu.com/<myorganisation>/<my_module_repository>.git?ref=1.2.4"
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment