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

--aws-iam-idp and --aws-iam-role alias values #178

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

monde
Copy link
Collaborator

@monde monde commented Feb 15, 2024

--aws-iam-idp and --aws-iam-role values can be friendly label and we'll reverse look up the ARN value for them from okta.yaml.

Closes #102

Given an okta.yaml of

---
awscli:
  idps:
    "arn:aws:iam::123:saml-provider/S3_IDP": "S3 IdP"
    "arn:aws:iam::123:saml-provider/EC2_IDP": "EC2 IdP"
  roles:
    "arn:aws:iam::123:role/S3_RW": "S3 Read/Write"
    "arn:aws:iam::123:role/S3_READ": "OK S3 Read"
    "arn:aws:iam::123:role/EC2_full_access": "EC2 FULL"

okta-aws-cli can be invoked with ARN or friendly label values:

# these two commands are equivalent

$  okta-aws-cli web --oidc-client-id 0oabc --org-domain test.okta.com \
      --aws-iam-idp arn:aws:iam::123:saml-provider/S3_IDP \
      --aws-iam-role arn:aws:iam::123:role/S3_READ

$  okta-aws-cli  web --oidc-client-id 0oabc --org-domain test.okta.com \
      --aws-iam-idp "S3 IdP" \
      --aws-iam-role "OK S3 Read"

we'll reverse look up the ARN value for them from okta.yaml.

Closes #102
@monde monde merged commit 3f08df8 into master Feb 15, 2024
4 checks passed
@monde monde mentioned this pull request Feb 15, 2024
@monde monde deleted the issue_102_reverse_friendly_labels branch February 15, 2024 16:32
@monde
Copy link
Collaborator Author

monde commented Feb 15, 2024

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.

Friendly IdP menu labels doesn't work
2 participants