AWS#
AWS CLI#
Install AWS CLI v2
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o ~/Downloads/AWSCLIV2.pkg && open ~/Downloads/AWSCLIV2.pkg
awsume#
Install awsume and its helper, aws-sso-util
awsume is a utility that helps you manage your AWS credentials and easily assume roles. Along with aws-sso-util, it can be used to manage AWS SSO credentials and roles.
You should read the awsume documentation to understand how to configure it, but here is a quick start:
-
Configure your AWS credentials file with your default profile
-
Set up your shell to work with
awsume
- the following command will add the necessary lines to your~/.zshrc
file: -
Update your
~/.aws/config
file with all roles - theaws-sso-util
app will detect all available: -
By default,
awsume
has a role duration of 1 hour. This can be extended up to 12 hours (43,200 seconds), by specifying a longer role duration either via command line or as in the following example config: -
You should also create a default profile on your
~/.aws/config
file that will be used automatically when you don't provide a profile name argument to the awsume CLI:[profile default] sso_start_url = https://d-123456789.awsapps.com/start sso_region = us-east-1 sso_account_name = AWS Account Name sso_account_id = 1234567890123 sso_role_name = RoleName region = us-east-1 credential_process = aws-sso-util credential-process --profile default sso_auto_populated = true