granted
granted copied to clipboard
[Connecting to Granted Approvals] Add ability to request access via Granted Approval web app when using native AWS cli cmd
Description
- Override native aws cli cmd to verify if users have the necessary roles and output redirect link to granted approvals if users don't have the required rules
- Use
[credential_process](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html)
to source credentials through granted cli. This PR extends functionality for the granted CLI, adding acredential_process
compatible command that integrates with the native AWS CLI.
Note
User needs to update their ~./aws/config
profile to have a granted prefix.
region = <>
granted_sso_account_id = <>
granted_sso_region = <>
granted_sso_role_name = <>
granted_sso_start_url = <>
credential_process = granted -- credentialsprocess --profile sandbox1 --url
Desired effect
Running aws s3 ls --profile cf-dev
works via granted