Is there any way to specify which credentials to use when retrieving a module from a private module registry, which is CI/CD friendly? Something that doesn’t involve a CLI Configuration File, or an interactive terraform login.
terraform login -token="TOKEN.atlasv1.TOKEN"
Which is the best practice, of retrieving modules, from a private module registry during a terraform init in CI/CD (this case Azure Pipelines)? Since a CLI Configuration File isn’t optimal in a CI/CD system and so isn’t terraform login, because it’s interactive.
If the answer still is a CLI Configuration File, how should it then be implemented to accept parameter values etc? Without the need to create a file on the machine during build time and replace text in that one (or any other incidence in a way similiar of this). That seems a bit “workaround-ish”, and not very clean.
As always thankful for all input!