When I run terraform apply using the Terraform files in my GitLab CI Pipeline (I didn't write them) I get the following,

Initializing the backend...
  The address of the REST endpoint

Can these files be run in isolation of GitLab CI, on a workstation with vanilla terraform?

1 Answer 1


This seems to be a part of the provider, backend "http", which is like this somewhere

terraform {
  backend "http" {

This is how you configure Terraform State as a backend in GitLab CI/CD. This is need so your tfstate file doesn't remain on the runner. This is what's responsible for updating that tfstate file remotely.

If running them outside of GitLab CI just delete the backend provider.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.