Create Scaleway API Key
scaleway_iam_create_api_keyCreate a new Scaleway API key for an application and capture the secret key immediately, as it is returned only once and cannot be recovered.
Instructions
Generate a new API key (access_key + secret_key pair) for an Application. IMPORTANT: secret_key is returned ONLY in this response - Scaleway never shows it again, and there is no recovery endpoint. The caller MUST capture it immediately (e.g. write straight to the target host's env file or a secret manager) rather than just printing it, since it cannot be re-fetched later - only revoked and replaced with a new key. Each call mints a real, immediately-active credential; don't call this speculatively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | No | RFC3339 timestamp, e.g. '2027-08-12T00:00:00Z'. Omit for a key that never expires - appropriate for a durable operational credential (e.g. one a cron job or deployed service uses), NOT for a throwaway/bootstrap key, which should get a short expiry instead. | |
| description | Yes | What this key is for - shown in the console key list, the only way to tell keys apart later. | |
| application_id | Yes | The Application this key authenticates as. Get it from scaleway_iam_create_application or scaleway_iam_list_applications. | |
| default_project_id | No | Preferred Project for Object Storage operations with this key. Required if this key will call the S3-compatible API (bucket policies, objects). |