How does GitLab CI handle Terraform state?
BeginnerProductionCI/CD and Automation
Answer
GitLab offers an HTTP backend per project (https://gitlab.com/api/v4/projects/<id>/terraform/state/<name>) with locking, versioning and access control, and the gitlab-terraform wrapper script configures it. It is convenient for small teams; for multi-account setups S3 or HCP often fits better.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate