atlantis: Bug: [Docker] Custom Terraform plugins not found on plan
I have a custom Terraform plugin at ${workspace}/terraform.d/plugins/linux_amd64/terraform-provider-errorcheck_v1.1.5. The plugin is found during init, but during plan I get the following error
exit status 1: running "version=$(git rev-parse --short HEAD); [[ -z \"${version}\" ]] && { echo '$version is not set' ; exit 1; }; PATH=/home/atlantis/.atlantis/bin:$PATH terraform${ATLANTIS_TERRAFORM_VERSION} plan -input=false -no-color -out ${PLANFILE} -var nginx_container_version=${version} -var php_container_version=${version} -var-file=\"$(source ../../.atlantis/workspaceselect.sh).tfvars\"\n" in "/home/atlantis/.atlantis/repos/rateco/rateco.ca/227/default/terraform/app":
Error: Failed to instantiate provider "errorcheck" to obtain schema: fork/exec /home/atlantis/.atlantis/repos/rateco/rateco.ca/227/default/terraform/app/terraform.d/plugins/linux_amd64/terraform-provider-errorcheck_v1.1.5: no such file or directory
Switched to workspace "test".
atlantis.yaml:
version: 3
automerge: true
projects:
- name: app
dir: terraform/app
terraform_version: v0.12.2
autoplan:
when_modified:
- "**"
- "../../code/**"
- "../modules/**"
enabled: true
workflow: app
workflows:
app:
plan:
steps:
- run: rm -rf .terraform
- init:
extra_args: [-backend-config=backend.tfvars]
- run: >
PATH=/home/atlantis/.atlantis/bin:$PATH
terraform${ATLANTIS_TERRAFORM_VERSION} workspace select -no-color "$(source ../../.atlantis/workspaceselect.sh)"
- init:
extra_args: [-backend-config=backend.tfvars]
- run: >
version=$(git rev-parse --short HEAD);
[[ -z "${version}" ]] && { echo '$version is not set' ; exit 1; };
PATH=/home/atlantis/.atlantis/bin:$PATH
terraform${ATLANTIS_TERRAFORM_VERSION} plan -input=false -no-color
-out ${PLANFILE}
-var nginx_container_version=${version}
-var php_container_version=${version}
-var-file="$(source ../../.atlantis/workspaceselect.sh).tfvars"
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26 (11 by maintainers)
For what it’s worth I finally solved my issue by changing
to
which seems to have solved my issue. On my Mac I cannot run
stracein the Atlantis Docker image so I could not find what was the missing library.👍 I’m going to close this for now. If it looks like this is a bug with Atlantis I’ll re-open.
Hey Scott, so I can reproduce the issue just by running
terraformin a linux Docker image. So I don’t think the bug is with Atlantis at all.