Terraform Cloud: Failed to instantiate provider, permission denied

From an AzureDevops project, Im trying to use a third party provider. Add the provider on this folder under:

i supose that terraform use linux_amd64 nodes.

Once a queue a plan in Terraform cloud, i get this error

Error: Failed to instantiate provider “elasticsearch” to obtain schema: fork/exec /terraform/Environments/ElasticCloud/Development/terraform.d/plugins/linux_amd64/terraform-provider-elasticsearch_v0.10.0: permission denied

Any luck resolving the permissions error? I’ve just submitted the same issue to support. I’m using a different provider but same error.

Hi @jasonsears,
This error is because we are commiting the binary with non executable permissions to run on servers.
On your local repo try:

git ls-tree HEAD
you will see that the file has permissions ar 644

100644 blob 6172ae2765b040498d6ab2724489a120d3896f0c terraform-provider-elasticsearch_v0.11.0

Then you need to update permisions:
git update-index --chmod=+x terraform-provider-elasticsearch_v0.11.0

and commit.

1 Like

That did it! Thanks for pointing me in the right direction.