dcloud iam access-keys migrate

Replace a legacy limited key: a dedicated service account with exactly what the key could do, and a new plain key

IAM iam:CreateAccessKeyChanges state

One transaction; needs iam:CreateUser, iam:CreatePolicy, iam:AttachUserPolicy and iam:CreateAccessKey, and the caller must be able to do every action handed out. The old key keeps working, limit and all, and is switched off (not deleted) once it has gone unused for 7 days since the migration. 409 for a key that can do nothing, a platform-made key, or one already migrated.

Synopsis

dcloud iam access-keys migrate id

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Example

dcloud iam access-keys migrate id

Generated from the API description, the same one the API checks requests against and the CLI is built from.