Troubleshooting
Authentication errors
Section titled “Authentication errors”If Terraform reports authentication failures:
- Confirm
VIDOS_API_KEYis 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).
Region issues
Section titled “Region issues”- IAM uses a global management endpoint; region targeting is for non-IAM services.
- If you are provisioning service instances, ensure
var.vidos_region(orTF_VAR_vidos_region) targets a supported region (for exampleeu).
Permission denied
Section titled “Permission denied”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.
Write-only secrets
Section titled “Write-only secrets”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.