Skip to main content

Google Cloud

You can define a Google Cloud credential in several ways.

  • Supplying the path to a credential json file
  • Putting the json credential inline in the configs
  • Manually defining the required attributes

Using complete Credential JSON

NameTypeDescription
jsonstring (optional)If using the json credential file inline
filestring (optional)Path to google credential file

Manual

Note think about utilizing our encrypted variable store or your own secrets management.

NameType
typestring (optional)
client_emailstring (optional)
private_key_idstring (optional)
private_keystring (optional)
auth_uristring (optional)
token_uristring (optional)
project_idstring (optional)
location_idstring (optional)

JSON credential file path example

Google Cloud credential file example
global:
google_credentials:
main:
file: /path/to/credentials.json

JSON credential inline example

Google Cloud credential inline json example
global:
google_credentials:
main:
json: |
{
"type": "service_account",
"project_id": "someproject",
"private_key_id": "123456",
"private_key": "-----BEGIN BLAH KEY-----\nMaaaaaaBADANBgkqhkiG9w0BAQEFAASCBKYwggSEW8+Basas==\n-----END BLAH KEY-----\n",
"client_email": "[email protected]",
"client_id": "100876872413513798695",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/someproject%40someproject.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}