Alternatives To Awsp
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Aws Vault7,349144 days ago78March 08, 202249mitGo
A vault for securely storing and accessing AWS credentials in development environments
Aws Iam Authenticator1,9704513 days ago27July 01, 202217apache-2.0Go
A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
2 months ago2March 10, 2021105bsd-3-clauseGo
kube2iam provides different AWS IAM roles for pods running on Kubernetes
Configure Aws Credentials1,715
3 days ago42mitJavaScript
Configure AWS credential environment variables for use in other GitHub Actions.
Ex_aws1,1882741335 days ago70June 30, 202243mitElixir
A flexible, easy to use set of clients AWS APIs for Elixir
5 months ago8January 13, 202220agpl-3.0Python
A tool for quickly evaluating IAM permissions in AWS.
a month ago1July 07, 2021121apache-2.0Go
Integrate AWS IAM with Kubernetes
2 years ago57August 25, 20219apache-2.0Python
AWS Least Privilege for Distributed, High-Velocity Deployment
Aws Mfa915
818 days ago12April 30, 201847mitPython
Manage AWS MFA Security Credentials
Gimme Aws Creds81613 days ago30February 07, 2022102apache-2.0Python
A CLI that utilizes Okta IdP via SAML to acquire temporary AWS credentials
Alternatives To Awsp
Select To Compare

Alternative Project Comparisons

AWS credential profile changer

Excerpt from IAM Best Practices:

Delegate by using roles instead of by sharing credentials

You might need to allow users from another AWS account to access resources in your AWS account. If so, don't share security credentials, such as access keys, between accounts. Instead, use IAM roles. You can define a role that specifies what permissions the IAM users in the other account are allowed, and from which AWS accounts the IAM users are allowed to assume the role.

To make process of switching profiles (environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY among others) it is handy to use the code provided on this repo.


  • Autocomplete of available profiles (awsp + tab + tab)
  • Support configurable location of credentials file (AWS_SHARED_CREDENTIALS_FILE environment variable)
  • Full compatibility with official AWS CLI
  • Assume roles which require MFA
  • Integration with aws-vault to prevent secrets from storing in plain-text


  • jq should be installed
  • Download anywhere you like (for example, ~/ and make it executable:
    $ wget -O ~/
    $ chmod +x ~/
  • Depending on which version of shell you use, edit ~/.bash_profile or similar to include: source ~/
  • (Optional) Enable aliases and auto-completion into your ~/.bash_profile or similar:
    alias awsall="_awsListProfile"
    alias awsp="_awsSetProfile"
    alias awswho="aws configure list"

    complete -W "$(cat $HOME/.aws/credentials | grep -Eo '\[.*\]' | tr -d '[]')" _awsSwitchProfile
    complete -W "$(cat $HOME/.aws/config | grep -Eo '\[.*\]' | tr -d '[]' | cut -d " " -f 2)" _awsSetProfile


Content of ~/.aws/config:




To change AWS profile to use staging account (222222222222):

$ awsp company-staging-anton

To change AWS profile to use production account (111111111111) which requires MFA token created in IAM account (333333333333, company-anton):

$ awsp company-production-anton
# Please enter your MFA token for arn:aws:iam::333333333333:mfa/anton
> 123456


  1. This code has been tested only on Mac and there are no intentions to make it to work on other systems (if necessary)!

  2. To avoid storing AWS secrets in plain text you can use aws-vault, while keeping the same awsp script to switch roles.


Created by Anton Babenko with inspiration from several code snippets


Apache 2 Licensed. See LICENSE for full details.

Popular Amazon Web Services Projects
Popular Role Projects
Popular Cloud Computing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Amazon Web Services
Aws Iam