Third-party providers failed packaging filesystem contents - Terraform Enterprise 0.15

Hi

I am running into an issue where after the speculative plan completes, the plan fails to package filesystem contents when using a Third-party plugin on Terraform Enterprise.

Error:

Terraform v0.15.3
on linux_amd64
Configuring remote state backend...
Initializing Terraform configuration...
aws_iam_test_role: Refreshing state... [id=test-role]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:

Terraform will perform the following actions:

Plan: 0 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + test = "secret/...."
failed packing filesystem contents: failed to get symbolic link destination for "/tmp/terraform-build-worker112925418/fs-download/.terraform/providers/test.com/test/vault/0.1.0/linux_amd64": lstat /root/.terraform.d: no such file or directory

I am using the custom worker image here: Interactive Installation - Install and Config - Terraform Enterprise - Terraform by HashiCorp

and have added an additional line to the worker docker image to

COPY terraform-provider-vault_v0.1.0 /root/.terraform.d/plugins/test.com/test/vault/0.1.0/linux_amd64/
1 Like

I’ve updated the path as suggested here: Installing Software in the Run Environment - Runs - Terraform Cloud and Terraform Enterprise - Terraform by HashiCorp

but it seems to have taken me backwards a step:

Terraform v0.15.3
on linux_amd64
Configuring remote state backend...
Initializing Terraform configuration...

Setup failed: Failed terraform init (exit 1): <nil>

Output:

Initializing the backend...

Successfully configured the backend "remote"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Finding test.com/test/vault versions matching "0.1.0"...
- Finding hashicorp/tfe versions matching "0.25.3"...
- Finding hashicorp/aws versions matching "3.43.0"...
- Installing hashicorp/aws v3.43.0...
- Installed hashicorp/aws v3.43.0 (signed by HashiCorp)
- Installing hashicorp/tfe v0.25.3...
- Installed hashicorp/tfe v0.25.3 (signed by HashiCorp)
╷
│ Error: Invalid provider registry host
│ 
│ The host "test.com" given in in provider source address
│ "test.com/test/vault" does not offer a Terraform provider registry.
╵