cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
396
Views
1
Helpful
3
Replies

Nexus as code module not downloading

suya2024
Level 1
Level 1

Hi,

Hope i have the right forum. I am trying to use nexusascode from github and getting this error when i try terraform init

 

Could not download module "aci" (main.tf:15) source code from
│ "git::https://github.com/netascode/terraform-aci-nac-aci?ref=9f496e8525f35ff5203301119bf241c196007a0d": error
│ downloading 'https://github.com/netascode/terraform-aci-nac-aci?ref=9f496e8525f35ff5203301119bf241c196007a0d': git
│ must be available and on the PATH.

This my main tf file

 

terraform {
required_providers {
aci = {
source = "CiscoDevNet/aci"
}
}
}

provider "aci" {
username = "username"
password = "password"
url = "https://apic.url"
}

module "aci" {
source = "netascode/nac-aci/aci"
version = "1.0.0"

1 Accepted Solution

Accepted Solutions

I dont think there is a correct forum for this other than creating an issue on the repo, but lets see if we can fix this.

From the code snip it appears this is trying to download from a specific Git commit hash. That might mean the module registry might be redirecting to the Git repository directly. That error means you are encountering says that Git is not available on your system path. If you have not done so, download and installed GIT (you can do this with homebrew).

Have you installed GIT and this is in your systems path?

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

3 Replies 3

I dont think there is a correct forum for this other than creating an issue on the repo, but lets see if we can fix this.

From the code snip it appears this is trying to download from a specific Git commit hash. That might mean the module registry might be redirecting to the Git repository directly. That error means you are encountering says that Git is not available on your system path. If you have not done so, download and installed GIT (you can do this with homebrew).

Have you installed GIT and this is in your systems path?

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thanks for your response and i did not have GIT installed, but just did. Now trying to figure out how to make GIT available in system path

Thanks got it working, learned something new today

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License