Skip to content

Invalid Provider Configuration - Config File

The below error seems to imply that a config file is now required rather than just using only a GITLAB_TOKEN environment variable.

For context I've been using this against gitlab.com for some time and successfully using it with an empty provider block:

provider "gitlab" {}

This now produces the following error:

│ Error: Invalid provider configuration

│ Provider "registry.opentofu.org/gitlabhq/gitlab" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider

│ documentation.

│ Error: unable to locate config file

Edited by 🤖 GitLab Bot 🤖