A service account access key within the project is required for the Google Cloud provider. This is most easily with the JSON file being uploaded into Scalr

Create the Credential

Navigate to API & Services -> Credentials in the Google console.

454

Click on a Service Account or create one.

1285

Add a key.

1038

Choose JSON and Create.

557

Create the Provider Configuration

Once you have the JSON file, it can be uploaded into Scalr:

1186

Provider example:

resource "scalr_provider_configuration" "google" {
 name       = "google_main"
  account_id = "acc-xxxxxxxxx"
  google {
    project     = "my-project"
    credentials = "my-credentials"
  }
}

The above is an example, please see the full provider documentation here.


What’s Next