granted icon indicating copy to clipboard operation
granted copied to clipboard

[Connecting to Granted Approvals] Add ability to request access via Granted Approval web app when using native AWS cli cmd

Open jordiup opened this issue 2 years ago • 0 comments

Description

  1. 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
  2. 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 a credential_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

jordiup avatar Sep 20 '22 08:09 jordiup