pep8
pep8

Reputation: 401

How to fix: ''Failed to instantiate provider "example" to obtain schema' : file does not exist' while building custom Terraform provider?

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!

Upvotes: 5

Views: 2310

Answers (1)

xuzhang87
xuzhang87

Reputation: 96

rename you provider with ".exe" suffix on windows environment

Upvotes: 8

Related Questions