-
Notifications
You must be signed in to change notification settings - Fork 887
self host terraform modules for internal gitlab instance issue #11743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#9841 is a bit related. Meanwhile, you can try saving module "git-clone"{
source = "git::https://var.username:var.access-token@<git-url>/coder-modules.git//git-clone?ref=main"
} |
Yeah I tried that, unfortunately terraform doesn't allow variables for source |
Hi @Conor-Behard333 you can use Artifactory to self host modules. We have added some docs here |
Another solution is to mount/create a [url "https://${PERSONAL_ACCESS_TOKEN}@git.company.com"]
insteadOf = https://git.company.com |
Ahh yeah just noticed Artifactory's support for a terraform module registry. Currently waiting for our team to get a new version of jfrog to be able to do this. In the meantime I will try your other purposed solution. |
As we have two working solutions. Please update if you are able to use them. We may close the issue as completed then. |
happy for you to close this |
@Conor-Behard333 Thanks. Out of curiosity, which option did you go with? Artifactory or a private git clone? |
We already have the existing infrastructure to allow for an artifactory registry so went with that |
Hi,
I want to be able to reference terraform modules from my own git repo and push them to coder using the cli.
An issue I have found is that when using the cli it won't successfully push the modules as I'm referencing a self hosted instance of gitlab and it requires a username and access-token. For example a bot username and an access token which can read the modules repo
While this code does work, it requires having the username and access token publicly available (obviously not wanted).
Does the coder cli have a way of adding the username and access token to the source URL, if not, could this be done?
The text was updated successfully, but these errors were encountered: