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.
Agent
Build your custom image using the Dockerfile
below. Then update the
custom_agent_image_tag
setting with your image (e.g.
registry.example.com/example/tfc-agent:custom-tag
).
Requirements
- The base image must be
hashicorp/tfc-agent:1.6.0
or later.
Dockerfile