doc/administration/settings/terraform_state_settings.md
{{< details >}}
{{< /details >}}
You can configure settings for Terraform state files, including encryption and storage limits.
{{< history >}}
{{< /history >}}
By default, GitLab encrypts Terraform state files before storing them. You can turn off encryption if needed.
When encryption is turned off, Terraform state files are stored as they are received, without any encryption applied.
Prerequisites:
To configure Terraform state encryption:
[!warning] When you turn off encryption, the change affects only new Terraform state files. Existing encrypted files remain encrypted and continue to work as expected.
{{< history >}}
{{< /history >}}
You can limit the total storage of Terraform state files. The limit applies to each individual state file version and is checked when a new version is created.
Prerequisites:
To add a storage limit:
0 to allow files of unlimited size.When Terraform state files exceed this limit, GitLab does not save them and rejects the associated Terraform operations.