Skip to content

CLI Configuration»

For some of our OpenTofu/Terraform users, a convenient way to configure the OpenTofu/Terraform CLI behavior is through customizing the ~/.terraformrc file.

During the preparing phase of a run, Spacelift creates a configuration file at the default location: ~/.terraformrc. This file contains credentials that are needed to communicate with remote services.

Extending CLI configuration»

Extending the Terraform CLI behavior can be done by using mounted files:

Using mounted files»

Any mounted files with names ending in .terraformrc will be appended to ~/.terraformrc.

Info

The OpenTofu/Terraform CLI configuration file syntax supports these settings