I’m trying to setup a private custom registry for terraform using Artifactory.
Artifactory Blog article : terraform repo setup
Everything seems to be working great, I’m able to upload modules, and connection test to Official Terraform registry (for providers) seems to be working fine.
Problem is, when I try to use my registry from terraform client. I get an error message:
❯ terraform login artifactory.mydomain.com
│ Error: Host does not support Terraform tokens API
│ The given hostname "artifactory.mydomain.com" does not support creating Terraform authorization tokens.
Not so explicit to me. so I’m wondering what is expected from terraform cli when performing a terraform login.
Usage: terraform [global options] login [hostname]
Retrieves an authentication token for the given hostname, if it supports
automatic login, and saves it in a credentials file in your home directory.
If no hostname is provided, the default hostname is app.terraform.io, to
log in to Terraform Cloud.
If not overridden by credentials helper settings in the CLI configuration,
the credentials will be written to the following local file:
I’m curious about the “Retrieves an authentication token for the given hostname, if it supports automatic login”
Anyone that could provide some explanation on this or lead me to the correct doc ?
Thanks a lot for your help