Custom Worker Image
Terraform Enterprise performs Terraform runs in ephemeral containers, using a built-in tfc-agent
container image by default. To add custom tools or logic to your Terraform run environment, you must build a custom image and configure Terraform Enterprise to use it.
Requirements
The base image must be hashicorp/tfc-agent:1.6.0
or later.
Dockerfile
Build your custom image using the below Dockerfile
.
Agent
Update the environment variable TFE_RUN_PIPELINE_IMAGE
in your yaml file: