Closed PatBolkun closed 1 month ago
Hi @PatBolkun I cannot reproduce the issue with the code you pasted. However, the error message says you are referencing a provider called "tofu", which is almost certainly incorrect. Please check the rest of your code if you have the "tofu" string somewhere in there.
$ tofu init
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/azurerm versions matching "4.0.1"...
- Installing hashicorp/azurerm v4.0.1...
- Installed hashicorp/azurerm v4.0.1 (signed, key ID 0C0AF313E5FD9F80)
Providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://opentofu.org/docs/cli/plugins/signing/
OpenTofu has made some changes to the provider dependency selections recorded
in the .terraform.lock.hcl file. Review those changes and commit them to your
version control system if they represent changes you intended to make.
OpenTofu has been successfully initialized!
You may now begin working with OpenTofu. Try running "tofu plan" to see
any changes that are required for your infrastructure. All OpenTofu commands
should now work.
If you ever set or change modules or backend configuration for OpenTofu,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
I agree with you that this has to be some stray "tofu" string. I was suprisingly able to authenticate in another module with a provider source value of "registry.opentofu.org/hashicorp/azurerm"
which is certainly incorrect.
Your assumption was correct, I was able to locate some tofu references in a child module using tofu
instead of azurerm
.
Thank you for the assistance here!
@PatBolkun I'm closing the issue, please don't hesitate to reach out if you run into any further trouble.
Thank you for reporting an issue.
I'm having an issue retrieving the provider for AzureRM when running
tofu init
. Here is the output:OpenTofu Version
OpenTofu Configuration Files