Skip to content

Instantly share code, notes, and snippets.

@Megakuul
Last active September 15, 2024 18:30
Show Gist options
  • Select an option

  • Save Megakuul/7dfc5a551a306fbb2eb1408bd84de8fb to your computer and use it in GitHub Desktop.

Select an option

Save Megakuul/7dfc5a551a306fbb2eb1408bd84de8fb to your computer and use it in GitHub Desktop.
aws-local-sso-setup.md

AWS local sso setup

If you want to use multiple aws accounts over one sso login, the local setup looks like this:

Configure sso sessions using the --profile flag to generate a profile associated with the session:

aws configure sso --profile MyProfile-Prod

Create a session and give it a locally unique name (e.g. 'prod').

Add your sso url (e.g. 'https://megakuul.awsapps.com/start').

Now you can repeat this step for every account you want to use.

List your profiles with aws configure list-profiles.

You can set the AWS_PROFILE environment variable to set a default profile.

Finally, you can use aws sso login to authenticate against the provider and access all of your profiles.

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