Introduction
Problem
The bundle works fine on a TFE server direct, but when used against a Remote Agent it fails.
Problem observed first with customer provider but even when testing with simple/other providers we are getting same errors
Error noted
Operation failed: failed unpacking Terraform: failed creating file
"/root/.tfc-agent/component/terraform/runs/run-xxxx.plan/.terraform.d/plugins":
open /root/.tfc-agent/component/terraform/runs/run-xxx.plan/.terraform.d/plugins: is a directory
xxxplan/.terraform.d/plugins: is a directory
Cause
-
This error happen when customers use the
ziputility to create custom bundles instead of theterraform-bundleutility
Solutions:
-
When creating TFE-bundle make sure to Zip bundle to use
-Dflag, or--no-dir-entriesThe-Dflag removes files from a zip