yak role¶
Switch the active role tier.
Usage¶
Description¶
Switches the active role tier across all accounts, then regenerates ~/.aws/config. Accepts full role tier names or any configured alias.
If the target account is protected by safeguards and the requested tier exceeds max_power_grade_allowed, yak blocks the operation with a clear error.
Flags¶
| Flag | Description |
|---|---|
--account <name> |
Apply the role switch to a specific account only |
--bypass-safeguards |
Override safeguard restrictions for this operation. Requires confirmation. All bypasses are logged to audit.log in paths.log_dir (default ~/.local/share/yak). |
Examples¶
Bypass confirmation¶
When --bypass-safeguards is used on a protected account, yak displays a warning and requires you to type the account name to confirm:
This action is logged with timestamp to audit.log in paths.log_dir (default ~/.local/share/yak).