Get Involved
gcp
The gcp connection can be used to access Google Cloud Platform resources.
Arguments
Name | Type | Required? | Description |
---|---|---|---|
credentials | String | Optional | Either the path to a JSON credential file that contains Google application credentials or the contents of a service account key file in JSON format. |
ttl | Number | Optional | The time, in seconds, to cache the connections. By default, the GP connection will be cached for 5 minutes. |
All arguments are optional, and a gcp connection with no arguments will behave the same as the GCP default connection.
Attributes (Read-Only)
Attribute | Type | Description |
---|---|---|
access_token | String | An OAuth access token to use to authenticate to GCP. |
Default Connection
The GCP connection type includes an implicit, default connection (connection.gcp.default) that will be configured using the same mechanism as the GCloud CLI (environment variables, config files, etc); the effective connections of this default are the same as if you run the gcloud command. Connections will be loaded from:
- The path specified in the GOOGLE_APPLICATION_CONNECTIONS environment variable, if set; otherwise
- The standard location (~/.config/gcloud/application_default_connections.json)