Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m2m allow STS role session name to be overridden #262

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

monde
Copy link
Collaborator

@monde monde commented Jan 11, 2025

m2m allow STS role session name to be overridden with --aws-sts-role-session-name [value] CLI flag.

default - name is okta-aws-cli

$ okta-aws-cli m2m --exec -- aws sts get-caller-identity
{
    "UserId": "ABC:okta-aws-cli",
    "Account": "123",
    "Arn": "arn:aws:sts::123:assumed-role/myrole/okta-aws-cli"
}

--aws-sts-role-session-name - name is a-user

$ okta-aws-cli m2m --aws-sts-role-session-name a-user --exec -- aws sts get-caller-identity
{
    "UserId": "DEF:a-user",
    "Account": "123",
    "Arn": "arn:aws:sts::123:assumed-role/myrole/a-user"
}

Closes #165

@monde monde force-pushed the aws-sts-role-session-name branch from 1cc4c75 to 55b7463 Compare January 11, 2025 01:22
@monde monde merged commit e75a971 into master Jan 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

m2m configurable iam role session name
2 participants