Skip to content

Installing Packages

Terrateam Configuration Terrateam behavior can be configured via a config.yml. This file is located in a directory named .terrateam at the root of your Terraform repository: .terrateam/config.yml.

See Configuration documentation for details.

The Terrateam image comes with a number of packages installed, however if a package is missing it is possible to install it in a hook or workflow.

Installing packages globally

Placing the package install in the hooks.all.pre section, it will be installed at the start of any Terrateam execution:

hooks:
all:
pre:
- type: run
cmd: ['apt-get', 'update']
- type: run
cmd: ['apt-get', '-y', 'install', 'golang-go']

Installing packages in a workflow

Some packages may only be necessary if specific directories are executed, and it is not necessary to install the package for every run. To install a package for a specific directory, install it in a workflow. For example:

workflows:
- tag_query: "dir:iac/dir"
plan:
- type: run
cmd: ['apt-get', 'update']
- type: run
cmd: ['apt-get', '-y', 'install', 'golang-go']
apply:
- type: run
cmd: ['apt-get', 'update']
- type: run
cmd: ['apt-get', '-y', 'install', 'golang-go']
We use cookies and similar technologies to provide certain features, enhance the user experience and deliver content that is relevant to your interests. Depending on their purpose, analysis and marketing cookies may be used in addition to technically necessary cookies. By clicking on "Agree and continue", you declare your consent to the use of the aforementioned cookies. Here you can make detailed settings or revoke your consent (in part if necessary) with effect for the future. For further information, please refer to our Privacy Policy .