Skip to content

Troubleshooting

If Terraform reports authentication failures:

  • Confirm VIDOS_API_KEY is set in your shell environment (or Terraform Cloud env vars).
  • Confirm the value is the IAM API key secret (not the API key resource id).
  • IAM uses a global management endpoint; region targeting is for non-IAM services.
  • If you are provisioning service instances, ensure var.vidos_region (or TF_VAR_vidos_region) targets a supported region (for example eu).

If you see authorization errors:

  • Ensure the IAM API key secret has permissions for the resource types you are creating.
  • If you are using managed service roles (like authorizer_all_actions), ensure your IAM key is allowed to reference them.

vidos_iam_api_key.api_secret is write-only: it is returned only on create and cannot be recovered after import.

If you need to rotate a leaked or lost secret, create a new API key and update your VIDOS_API_KEY.