homebrew-awsp

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 5 Imported by: 0

README

AWSP - AWS Profile Switcher

a go clone of johnnyopao/awsp

Easily switch between AWS Profiles

Prereqs

Setup your profiles using the aws cli

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

Homebrew Install

brew install electblake/awsp/awsp

Or brew tap electblake/awsp and then brew install awsp.

Updates

Highly reccomend tap first brew tap electblake/awsp

and then simple brew upgrade awsp

Usage

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

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

  echo "%{$FG[238]%}aws(%{$FG[028]%}${profile}%{$FG[238]%})%{$reset_color%} "
}
PROMPT='OTHER_PROMPT_STUFF $(aws_prof)'

References and Inspiration


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL