05-29-2025 08:44 AM
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"
Solved! Go to Solution.
05-29-2025 09:03 AM
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?
05-29-2025 09:03 AM
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?
05-29-2025 09:20 AM
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
05-29-2025 10:33 AM
Thanks got it working, learned something new today
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide