Build and deploy a custom worker image
This topic describes how to build and deploy a custom worker image so that you can add custom tools or logic to your Terraform run environments.
Introduction
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: