tebib role
Generated from the CLI's own command tree. Run tebib role --help for the same text in your terminal.
Shortcut: assume a role (same as tebib iam role assume).
Commands
tebib role assume
Get short-lived credentials for a role (if its trust policy allows you).
tebib role assume [OPTIONS] ROLE_ID| Argument | Description |
|---|---|
ROLE_ID required | Role ID (role-...). |
| Option | Value | Description |
|---|---|---|
--session-name required | str | Shows in the audit log (2-64 chars: letters, digits, +=,.@_-). |
--duration | int range | Session length in seconds (default 1 h). |
--policy, -f | str | Session policy JSON file (or -): narrows what the role allows. |
--export | flag | Print shell export lines for the credentials. |
--save-profile | NAME | Save the session as this profile (endpoint and organization copied). |
--org | str | Organization ID (default: from the profile). |
--output, -o | table | json | yaml | Output format. |
Examples
tebib role assume role-... --session-name me --export # eval "$(tebib role assume ...)"tebib role assume role-... --session-name me --save-profile deployer