Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page describes how to use Argument Setter plugin using a file stored in Google Cloud Storage (GCS).

Before you begin

If the file stored in GCS is publicly available, then there is no additional configuration required. The URL in the Argument Setter plugin can be set as:

...

Code Block
{
  "arguments" : [
    { 
      "name": "<macro name>", 
      "value": "<macro value>"
    },
    {
      "name": "gcs.path",
      "value": "gs://bucket-name/file.json"
    }
    ...
  ]
}

Argument Setter using a file in GCS when the file is not public

  1. Download the Service Accounts JSON file.

  2. Using terminal command line, obtain a signed URL of the file in GCS:

    Code Block
    gsutil signurl -d 10m <path-to-SA-json>/service-account.json gs://<bucket-name>/<file-name>.json
  3. Use the signed URL and the URL path in Argument Setter plugin.

...