Skip to content

Provider configuration

Each provider has a required field set, checked before anything is rendered. A missing field stops prepare and names the field.

The required fields

Provider Required
gcp project_id, region
aws account_id, region, cluster_oidc_issuer, cluster_oidc_provider_arn
azure subscription_id, tenant_id, location, resource_group, aks_oidc_issuer, artifact_registry_scope

GCP additionally requires gcp_iamcredentials_endpoint, which defaults to https://iamcredentials.googleapis.com and is the field you override on a private or restricted network.

Fail-closed, with the field named

Each field is its own check, so the failure identifies what is missing:

provider_config.cluster_oidc_issuer is required for aws

Nothing is inferred and nothing defaults to a guess. A field the contract cannot derive is one you supply.

As flags

xratu dataplane install prepare acme edge-eu dp-eu-west1 \
  --provider aws \
  --artifact-registry <aws-account-id>.dkr.ecr.<region>.amazonaws.com/<repository> \
  --artifact-bucket s3://<bucket>/<prefix> \
  --account-id <aws-account-id> \
  --region <region> \
  --cluster-oidc-issuer https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id> \
  --cluster-oidc-provider-arn arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>

As a spec

provider_config carries every provider's fields in one block, with the ones your provider does not use left empty:

provider: aws
provider_config:
  project_id: ''
  region: <region>
  account_id: '<aws-account-id>'
  cluster_oidc_issuer: https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
  cluster_oidc_provider_arn: arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
  subscription_id: ''
  tenant_id: ''
  location: ''
  resource_group: ''
  aks_oidc_issuer: ''
  artifact_registry_scope: ''
  gcp_iamcredentials_endpoint: ''
  aws_sts_endpoint: ''
  aws_ecr_api_endpoint: ''
  azure_authority_host: ''

The endpoint fields at the bottom are the private-network override points. See Air-gapped deployment.

Why AWS asks for more

GCP and Azure derive the trust relationship from values the contract already has. AWS needs the cluster's OIDC issuer URL and the IAM OIDC provider ARN explicitly, because IRSA's trust policy names both and neither is derivable from the account and region. See Cluster OIDC values.

The Azure edit

Azure renders its service account annotations with placeholders, because the client IDs exist only after Terraform has run:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: xratud
  namespace: dp-eu-west1
  annotations:
    azure.workload.identity/client-id: REPLACE_RUNTIME_CLIENT_ID_FROM_TERRAFORM

GCP and AWS derive theirs at render time:

    iam.gke.io/gcp-service-account: dp-eu-west1-runtime@<gcp-project-id>.iam.gserviceaccount.com
    eks.amazonaws.com/role-arn: arn:aws:iam::<aws-account-id>:role/dp-eu-west1-runtime

On Azure, apply reads both values from Terraform's outputs and substitutes them before the cluster layer, so this needs no hand-editing. See Azure workload identity.

Where the values come from

Field Find it
project_id, region Your GCP project and the region holding your registry
account_id, region Your AWS account and the region holding your ECR repository
cluster_oidc_issuer The EKS cluster's OIDC issuer URL
cluster_oidc_provider_arn The IAM OIDC provider created for that cluster
subscription_id, tenant_id Your Azure subscription and directory
location, resource_group Where the AKS cluster and registry live
aks_oidc_issuer The AKS cluster's OIDC issuer URL
artifact_registry_scope The ACR registry's full resource ID