Skip to main content
Uses Workload Federation to assume a particular AWS role. aws assume-role uses Namespace Workload Federation to assume an AWS IAM role. This allows your Namespace workloads to securely access AWS resources without long-lived credentials.

Usage

Example

Output

Options

—role_arn <arn>

The ARN of the role to assume.

—aws_profile <profile>

Use the specified AWS profile.

—write_env <path>

Instead of outputting, write the environment variables to the specified file.

—duration <duration>

For how long the resulting AWS credentials should be valid for. Default is 1h.
Last modified on August 20, 2026