jmccann / drone-terraform

Drone plugin for triggering Terraform deployments
http://plugins.drone.io/jmccann/terraform/
Apache License 2.0
86 stars 93 forks source link

Third party plugins #61

Closed combor closed 6 years ago

combor commented 6 years ago

Hi, I'm trying to use ACME plugin with terraform but terraform fails with

Error: provider.acme: fork/exec /root/.terraform.d/plugins/terraform-provider-acme: no such file or directory

To be sure that the file is there I have added:

        files, err := ioutil.ReadDir("/root/.terraform.d/plugins")
        if err != nil {
            log.Fatal(err)
        }

        for _, file := range files {
            fmt.Println("XXXXX")
            fmt.Println(file.Name())
        }

Just before https://github.com/jmccann/drone-terraform/blob/master/plugin.go#L103 and the output is:

terraform validate
XXXXX
terraform-provider-acme

Error: provider.acme: fork/exec /root/.terraform.d/plugins/terraform-provider-acme: no such file or directory

That's kinda odd. Have you seen such a thing in the past?

combor commented 6 years ago

Ok, I found the reason. https://github.com/vancluever/terraform-provider-acme/issues/29

Will close this for now.

SriRohith commented 6 years ago

Hi, I got similar kind of issue while using terraform rest api provider, do you got any insight on this?


terraform validate

Error: provider.restapi: fork/exec /drone/src/terraform.d/plugins/linux_amd64/terraform-provider-restapi_v1.2.1-linux-amd64: no such file or directory```