# Terraform Cloud Ignores Backend

**URL:** <https://discuss.hashicorp.com/t/terraform-cloud-ignores-backend/6455>\
**Category:** HCP Terraform\
**Created:** [March 3, 2020, 5:55am UTC](https://discuss.hashicorp.com/t/terraform-cloud-ignores-backend/6455 "2020-03-03T05:55:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alchemist\_ubi](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/alchemist_ubi/32/29321_2.png) [@alchemist\_ubi](https://discuss.hashicorp.com/u/alchemist_ubi)\
**Post date:** [March 3, 2020, 5:55am UTC](https://discuss.hashicorp.com/t/terraform-cloud-ignores-backend/6455/1 "2020-03-03T05:55:47Z")

</div>

I am using the following configuration.:

```auto
terraform {
  required_version = "0.12.21"

  backend "gcs" {
    bucket = "testing-5"
    prefix = "infrastructure/github/testing"
    credentials = "./.tmp/credentials.json"
  }
}

```

I was expecting to fail using Terraform Cloud since there is no file called `./tmp/credentials.json.`

But it seems that Terraform Cloud ignores my backend configuration. The run went ahead just fine, but it used Terraform Cloud for saving the state instead of my backend configuration.

**Is this intentional by design?**

I am confused on how to make this to work with GCP backend for saving the state.

---

<div class="post-metadata">

**Author:** ![apparentlymart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/apparentlymart/32/702_2.png) [@apparentlymart](https://discuss.hashicorp.com/u/apparentlymart)\
**Post date:** [March 3, 2020, 10:04pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-ignores-backend/6455/2 "2020-03-03T22:04:14Z")

</div>

Hi @alchemist_ubi,

When you are using Terraform Cloud, the backend is always forced to be [the `remote` backend](https://www.terraform.io/docs/backends/types/remote.html) with the hostname set to `app.terraform.io`, and the state is always stored in the Terraform Cloud state storage. That’s by design: the other backend types are there for folks who are using Terraform CLI outside of Terraform Cloud.

Normally when using Terraform Cloud we’d expect to see a `backend "remote"` block so that a local `terraform plan` or `terraform apply` (outside of Terraform Cloud) would also know to look in Terraform Cloud for the state, but for historical reasons Terraform Cloud doesn’t _require_ such a block, and instead creates a backend configuration automatically itself. (In the current implementation, that is done via an [override file](https://www.terraform.io/docs/configuration/override.html) generated prior to running Terraform.)

---

<div class="post-metadata">

**Author:** ![alchemist\_ubi](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/alchemist_ubi/32/29321_2.png) [@alchemist\_ubi](https://discuss.hashicorp.com/u/alchemist_ubi)\
**Post date:** [March 4, 2020, 11:45am UTC](https://discuss.hashicorp.com/t/terraform-cloud-ignores-backend/6455/3 "2020-03-04T11:45:15Z")

</div>

Roger, thank you very much for the help.
