Drone plugins > GCP OIDC
This plugin generates and outputs a GCP Access Token using the OIDC flow.
Example
kind: pipeline
name: default
steps:
- steps:
name: gcp_oidc
image: plugins/gcp-oidc
settings:
project_id: 22819301
pool_id: d8291ka22
service_account_email_id: test-gcp@harness.io
provider_id: svr-account1
duration: 7200
Properties
project_id
stringrequiredGCP Project ID
Default: none
pool_id
stringrequiredGCP Workload Identity Pool ID
Default: none
provider_id
stringrequiredGCP Workload Identity Provider ID
Default: none
service_account_email_id
stringrequiredGCP Service Account Email ID
Default: none
oidc_token_id
stringrequiredOIDC Token (can also be set as a stage variable - PLUGIN_OIDC_TOKEN_ID)
Secret recommendedDefault: none
duration
stringoptionalDuration for which the token is valid (in seconds)
Default: 3600