Drone plugins > GCP OIDC

GCP OIDC

by harness


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

    stringrequired

    GCP Project ID

    Default: none

  • pool_id

    stringrequired

    GCP Workload Identity Pool ID

    Default: none

  • provider_id

    stringrequired

    GCP Workload Identity Provider ID

    Default: none

  • service_account_email_id

    stringrequired

    GCP Service Account Email ID

    Default: none

  • oidc_token_id

    stringrequired

    OIDC Token (can also be set as a stage variable - PLUGIN_OIDC_TOKEN_ID)

    Secret recommended

    Default: none

  • duration

    stringoptional

    Duration for which the token is valid (in seconds)

    Default: 3600