pactflow / terraform-provider-pact

Terraform provider for Pact Broker (and Pactflow)
https://pactflow.io
MIT License
24 stars 4 forks source link

Provider cannot be instantiated - permission denied #8

Closed jlsan92 closed 3 years ago

jlsan92 commented 4 years ago

Terraform Version

v0.12.29

Affected Resource(s)

The provider itself

Terraform Configuration Files

provider "pact" {
  host         = "https://test.io"
  access_token = "testing"
  tls_insecure = true
}

Debug Output

https://gist.github.com/jlsan92/9c615cce4cc74db1b75bc20ccba39b61

Panic Output

NA

Expected Behavior

Normal TF plan procedure

Actual Behavior

Error: Failed to instantiate provider "pact" to obtain schema: fork/exec /root/.terraform.d/plugins/linux_amd64/terraform-provider-pact: permission denied

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan or terraform validate
mefellows commented 4 years ago

Thanks for the report.

The error looks to be related to starting the service itself as root - do you indeed have the permission to fork/exec?

Our build is able to successfully initialise and run the plugin - see the latest release build here: https://travis-ci.org/github/pactflow/terraform/builds/711706647

Can you please provide a build that reproduces the problem? We'll be able to fix it if it indeed is an issue.

lukaszczechowski commented 3 years ago

Hi @jlsan92 I got the same error upon my trials with terraform-provider-pact. In my case it helped the following:

chmod +x terraform-provider-pact