Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

awsp

> 编程语言
Open source

Switch AWS Profiles Easily

383 stars0 likes2 views
WebsiteGitHub

About

Switch AWS Profiles Easily

AWSP - AWS Profile Switcher

Easily switch between AWS Profiles

Prereqs

Setup your profiles using the aws cli

bash
aws configure --profile PROFILE_NAME

You can also leave out the --profile PROFILE_NAME param to set your default credentials

Refer to this doc for more information https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

Setup

bash
npm install -g awsp

Add the following to your .bashrc or .zshrc config

bash
alias awsp="source _awsp"

Usage

bash
awsp

Show your AWS Profile in your shell prompt

For better visibility into what your shell is set to it's helpful to configure your prompt to show the value of the env variable AWS_PROFILE.

Here's a sample of my zsh prompt config using oh-my-zsh themes

bash
function aws_prof {
  local profile="${AWS_PROFILE:=default}"

  echo "%{$fg_bold[blue]%}aws:(%{$fg[yellow]%}${profile}%{$fg_bold[blue]%})%{$reset_color%} "
}
bash
PROMPT='OTHER_PROMPT_STUFF $(aws_prof)'

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言