I currently have modules that are hosted on Spacelift, I am trying to import a module locally but I may be overlooking as I am getting:

Error: Module has no versions
│ Module "spacelift.io/Danielle/secrets-manager/aws

However, there are versions.

I tried deleting and reimporting these modules but no luck.

1 Answer 1


Modules hosted in the private registry can be used outside of Spacelift but you need to correctly verify your credentials or it may show that the module has no versions.

The easiest way is to have Terraform retrieve and store the credentials by running the following command in a terminal:

terraform login [spacelift.io](<http://spacelift.io/>)

After you confirm that you want to proceed, Terraform will open your default web browser and ask you to log in to your Spacelift account. Once this is done, Terraform will store the credentials in the ~/.terraform.d/credentials.tfrc.json file for use by subsequent commands. Reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.