AWS SSO Aliases you need to have

aws-sso-aliases-you-need-to-have

Hey kid.. yeah you.. Are you tired of adding --profile to every CLI command? Stop doing that. You can use these easy aliases to set a “context” for your CLI to use until you clear it or change it really easily.

Make sure you have your ~/.aws/config file configured properly for AWS SSO . Then go to your shell’s “rc” file (eg. .bashrc or .zshrc) and add the following:

Image description

Now you can quickly hop back and forth between different accounts and not type out extra stuff.

Is it not working? Run that awsclear alias you just made and get rid of that dumb .aws/credentials file. It’s almost 2024 and you don’t need long lived keys anymore! (at least comment it all out while you test)

Note: Make sure you know what account you are in at all times by getting into the habit running the alias for that account when you aren’t sure.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
product-analytics-hubspot:-tips-for-product-managers

Product Analytics HubSpot: Tips for Product Managers

Next Post
how-to-upskill-as-a-product-manager-and-make-progress-[jason-knight]

How to Upskill as a Product Manager and Make Progress [Jason Knight]

Related Posts