Created
February 26, 2020 20:10
-
-
Save eerkunt/3e97c71e6b0de251c6ee24a0f3386df7 to your computer and use it in GitHub Desktop.
how to source a terraform module from a mono-repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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