Google

For GCP a Service Account access key within the project is required. This most easily done as JSON file which can be uploaded to Scalr.

  • In the Google console navigate to API & Services -> Credentials.

    ../_images/GCE-sa-2.png
  • Click on a Service Account or create one.

    ../_images/GCE-sa-3.png
  • Add a key.

    ../_images/GCE-sa-4.png
  • Choose JSON and Create.

    ../_images/GCE-sa-5.png
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.