Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old provider hashicorp/oci issue #4

Open
gorspr opened this issue Jun 18, 2023 · 0 comments
Open

Old provider hashicorp/oci issue #4

gorspr opened this issue Jun 18, 2023 · 0 comments

Comments

@gorspr
Copy link

gorspr commented Jun 18, 2023

I have an issue with an old (non-existent anymore) hashicorp/oci provider. Even if I don't have it in my provider configuration, some of the resources asks for it, and 'terraform init' installs it and 'terraform plan/apply' wants to use it.

I can clearly see that 'terraform init' installs executable provider, and I can see that executable is in my .terraform path:
.terraform/providers/registry.terraform.io/hashicorp/oci/5.1.0/linux_amd64/terraform-provider-oci_v5.1.0
But when you go to registry.terraform.io you are not able to find hashicorp/oci repository (new one is oracle/oci).
I cleared hashicorp/oci from my ".terraform.lock.hcl" to be sure that is not "me" who asks for hashicorp/oci.
So, somewhere in configuration, some of the resources asks for hashicorp/oci, but which one? There are so many of them.
With grep command I can see that nowhere in my configuration files there is hashicorp/oci as a source in required_providers block.

I read that terraform if it cannot find the provider for specific resource (in configurations) it uses default one, and it seems that defualt one is hashicorp/oci (non-existent).
I tried to play with aliases in ~/.oci/config, unfortunately without any success.

So, any advice how to solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant