Skip to content

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
ArgumentDescription
ROLE_ID requiredRole ID (role-...).
OptionValueDescription
--session-name requiredstrShows in the audit log (2-64 chars: letters, digits, +=,.@_-).
--durationint rangeSession length in seconds (default 1 h).
--policy, -fstrSession policy JSON file (or -): narrows what the role allows.
--exportflagPrint shell export lines for the credentials.
--save-profileNAMESave the session as this profile (endpoint and organization copied).
--orgstrOrganization ID (default: from the profile).
--output, -otable | json | yamlOutput format.

Examples

tebib role assume role-... --session-name me --export # eval "$(tebib role assume ...)"
tebib role assume role-... --session-name me --save-profile deployer