Assume Role
assume_roleAssume an IAM role in another AWS account to gain temporary cross-account access credentials. Provide the role ARN and optional external ID for secure authentication.
Instructions
Assume an IAM role in another AWS account for cross-account access
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Optional friendly name for this account | |
| role_arn | Yes | ARN of the role to assume (e.g., arn:aws:iam::123456789012:role/MyRole) | |
| external_id | No | External ID for cross-account access (if required by trust policy) | |
| session_name | No | Optional session name (auto-generated if not provided) | |
| duration_seconds | No | Credential validity duration (default: 3600 = 1 hour) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |