Skip to content

Authentication and regions

Configure authentication via VIDOS_API_KEY, and (optionally) set a service region.

The provider authenticates using a Vidos IAM API key secret.

Recommended:

Terminal window
export VIDOS_API_KEY="<YOUR_VIDOS_IAM_API_SECRET>"

If you are using Terraform Cloud/Enterprise, set VIDOS_API_KEY as a sensitive environment variable.

Prefer to set region as a Terraform variable and pass it to the provider:

variable "vidos_region" {
type = string
description = "Region for service management endpoints (for example: eu)."
default = "eu"
}
provider "vidos" {
# Auth uses VIDOS_API_KEY (environment variable).
region = var.vidos_region
}

Notes:

  • IAM uses a global management endpoint by design; the region setting is for non-IAM services.
  • If you see region-related errors, confirm you are targeting a region where the service is available.