Skip to content

Required provider_config

GCP requires two fields, plus one that carries a default.

Field Flag Example
project_id --project-id <gcp-project-id>
region --region <region>
gcp_iamcredentials_endpoint Install spec https://iamcredentials.googleapis.com

The first two are the shortest required set of the three clouds. GCP derives the rest of what it needs from them.

As flags

xratu dataplane install prepare acme edge-eu dp-eu-west1 \
  --provider gcp \
  --dp-count 2 \
  --artifact-registry <region>-docker.pkg.dev/<gcp-project-id>/<repository> \
  --artifact-bucket gcs://<bucket>/<prefix> \
  --project-id <gcp-project-id> \
  --region <region>

As a spec

provider: gcp
provider_config:
  project_id: <gcp-project-id>
  region: <region>
  gcp_iamcredentials_endpoint: https://iamcredentials.googleapis.com

gcp_iamcredentials_endpoint is checked as required and defaults to the public endpoint, so it appears populated in a spec written by prepare. It is the field you change on a private or restricted network. See Air-gapped deployment.

What each is used for

project_id names the project the identities are created in, and scopes the project-level Artifact Registry writer grant.

region is the Artifact Registry location used in the repository IAM binding, and should match the region in your registry path.

Missing fields fail at prepare

provider_config.project_id is required for gcp
provider_config.region is required for gcp
provider_config.gcp_iamcredentials_endpoint is required for gcp

Each field is checked separately, so the failure names the one that is missing.