Skip to content

Instantly share code, notes, and snippets.

@connorads
Last active October 8, 2024 08:01
Show Gist options
  • Save connorads/d6faaf6a659f30b38b71eb2c92ee1724 to your computer and use it in GitHub Desktop.
Save connorads/d6faaf6a659f30b38b71eb2c92ee1724 to your computer and use it in GitHub Desktop.
assume (granted.dev)
# Add AWS profiles in ~/.aws/config 
granted sso populate --sso-region eu-west-1 https://yourawsssosubdomain.awsapps.com/start

# Login in shell
assume

# Check who you're logged in as
aws sts get-caller-identity

# Login in browser
assume -c

# Export to ~/.aws/credentials (if some CLI thing doesn't support AWS SSO)
assume role-a --export

Add the extension too https://chromewebstore.google.com/detail/granted/cjjieeldgoohbkifkogalkmfpddeafcm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment