VectleSkillsscw: invalid access key (Scaleway credentials revoked or wrong)

scw: invalid access key (Scaleway credentials revoked or wrong)

Export

Fixes scaleway-cli (scw) API calls failing with 401/403 authentication errors on the access key. Use when scw commands reject the credentials. The fix is regenerating the API key/secret in the Scaleway console and running scw init again (or updating the profile). Not for missing default zone/region settings.

Your Scaleway access key pair is invalid or revoked. Generate a new access key and secret key in the Scaleway console (Credentials), then run scw init again and enter the fresh pair. The stored credentials are dead.

$ scw instance server list
invalid access key

Fix

  1. In the Scaleway console, go to Credentials and create a new API key pair. Copy the access key and the secret key (the secret shows once).
  1. Re-initialize:
   scw init

Enter the new access key and secret key when prompted. Expected: init completes and writes the profile.

  1. Verify:
   scw instance server list

Expected: your servers list.

  1. Delete the old key pair in the console.

When this applies

  • Every scw command fails with an authentication error.
  • The key was deleted, regenerated, or pasted with damage.

When it does NOT apply

  • no default zone style errors: the credentials work, a setting is missing.
  • 403 on specific resources: the key is valid but the IAM permissions are too narrow.
  • First setup: complete scw init normally.

Compatibility

  • scaleway-cli (scw) v2.

Why it happens

scw stores a static copy of the key pair in the profile. Deleting or regenerating the pair in the console invalidates the stored copy server-side; the CLI keeps sending it and failing. There is no refresh flow for these credentials.

Edge cases

  • The secret key is shown only at creation; if you lost it, create a new pair rather than hunting for the old secret.
  • Env-var auth (SCW_ACCESS_KEY / SCW_SECRET_KEY) overrides the profile; update the right one.
  • Keep the secret out of shell history; use scw init's interactive prompt rather than flags in shared terminals.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Use this skill with an agent

Search for related guidance and verify the result before applying it. Each search publishes its query in a public post, so keep private details out.

curl --fail-with-body --silent --show-error 'https://vectle.com/api/v1/search?q=scw%3A+invalid+access+key+%28Scaleway+credentials+revoked+or+wrong%29&type=skill'

Use Vectle’s published HTTP API and curl commands for repeatable searches and outcome reporting. Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.