Skip to content
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

git clone over SSH fails for modules hosted in Azure Repos #18869

Closed
ralacher opened this issue Sep 15, 2018 · 8 comments
Closed

git clone over SSH fails for modules hosted in Azure Repos #18869

ralacher opened this issue Sep 15, 2018 · 8 comments
Labels

Comments

@ralacher
Copy link

Terraform Version

Terraform v0.11.8

Terraform Configuration Files

module "sql_server" {
  source = "git::ssh://git@ssh.dev.azure.com:v3/rlacher/Test/Test"
}

Debug Output

Gist

Crash Output

Expected Behavior

Clone remote Azure Repos repository.

Actual Behavior

Clone failed.

Steps to Reproduce

  1. terraform init

Additional Context

Terraform is running in the Azure Cloud Shell in this example. Also tested with local Ubuntu 16.04 installation on the same Terraform version.

I'm able to successfully clone the repo using the same URL with git clone on both systems.

References

@ralacher
Copy link
Author

ralacher commented Oct 12, 2018

Any idea when this will be addressed? We’d like to use Azure Devops with Terraform but this has been a major blocker.

Would be open to any known workarounds as well if there are any. Our organization is heavy into Azure.

@tbondal
Copy link

tbondal commented Oct 31, 2018

We are also struggling with this
Tested with Terraform v0.11.10 on both windows 10 and MacOS 10.14

@paultyng
Copy link
Contributor

I believe this code just wraps go-getter which is just executing git behind the scenes. Going to try to simulate this myself and see where the problem is (url format, go-getter, Terraform, etc.).

@paultyng
Copy link
Contributor

paultyng commented Nov 13, 2018

I was able to get this to work with a URL format like: git::ssh://git@ssh.dev.azure.com/v3/paul0787/terraform-null-test/terraform-null-test, so in your case I think that would look like:

module "sql_server" {
  source = "git::ssh://git@ssh.dev.azure.com/v3/rlacher/Test/Test"
}

(note the /v3 instead of :v3)

Let me know if that works for you @tbondal @rlacherksu

@paultyng paultyng added the waiting-response An issue/pull request is waiting for a response from the community label Nov 13, 2018
@tbondal
Copy link

tbondal commented Nov 13, 2018

I just tested and it works for me as well- unfortunately I did not think about trying this... (changing : to /)

Thanks!

//tbondal

@ralacher
Copy link
Author

ralacher commented Jan 8, 2019

Worked for me as well! Thank you very much.

@ghost ghost removed the waiting-response An issue/pull request is waiting for a response from the community label Jan 8, 2019
@ralacher ralacher closed this as completed Jan 8, 2019
@psandhu79
Copy link

Is there an example of this usage in azure-pipelines.yml

@ghost
Copy link

ghost commented Jul 25, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants