@@ -97,9 +97,15 @@ This template enables [Terraform integration in Merge Requests](https://docs.git
As a result if you enabled your `production` environment, every merge request will compute and display infrastructure changes compared to `master` branch.
### GitLab managed Terraform State
### Terraform Backend management
By default, this template enables [GitLab managed Terraform State](https://docs.gitlab.com/ee/user/infrastructure/terraform_state.html)(set`$TF_GITLAB_BACKEND_DISABLED` to disable).
By default, this template enables [GitLab managed Terraform State](https://docs.gitlab.com/ee/user/infrastructure/terraform_state.html).
As mentionned in GitLab's documentation, that requires that your Terraform scripts declare the
Terraform [HTTP backend](https://www.terraform.io/docs/language/settings/backends/http.html), the templates
does the rest to configure it automatically.
This default behavior can be disabled by setting `$TF_GITLAB_BACKEND_DISABLED` to `false`.
In that case, you'll have to declare and configure your backend and tfstate by yourself (see [Implicit Backend configuration support](#implicit-backend-configuration-support) below).