I was trying to build a custom Terraform provider by following the tutorial on this site:
https://www.terraform.io/docs/extend/writing-custom-providers.html
I executed terraform init
and that went well.
However, executing terraform plan
gives the following error:
Error: Failed to instantiate provider "example" to obtain schema: exec: "C:\Users\myname\go\src\terraform-provider-example\terraform-provider-example": file does not exist
The terraform-provider-example file is present in the working directory where i am executing terraform plan
Has anyone faced this issue? Please help!
Solution - Destroy module with reference to default providers. The error message provider["registry.terraform.io/integrations/github"] indicates the provider declaration is required. Adding the provider declaration back into the root module.
The Local provider is used to manage local resources, such as files. Use the navigation to the left to read about the available resources. Note. Terraform primarily deals with remote resources which are able to outlive a single Terraform run, and so local resources can sometimes violate its assumptions.
terraform init alone will never modify your state, but subsequently running terraform apply (and accepting the proposed changes) after you've upgraded the provider may cause the provider to upgrade the data stored for each existing object in a way that won't necessarily be compatible with earlier versions of that same ...
rename you provider with ".exe" suffix on windows environment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With