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 is1h.