awsprofiles

1.0.0 • Public • Published

awsprofiles

Manage and switch between AWS profiles

What's this?

Install

$ yarn add global awsprofiles

CLI

$ awsprofiles --help
 
  A tool to manage and switch between aws profiles
 
  Usage
    $ awsprofiles <profile>
 
  Examples
    $ awsprofiles
    $ awsprofiles prod
    $ awsprofiles dev

Interactive UI

Running awsprofiles without arguments provides an interactive UI similar to that of np

Configuration

Expects an ~/.aws/configure file similar to the format below:

[default]
aws_access_key_id = 1xxxxxxxxxxxxxxxxxxx
aws_secret_access_key = 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[production]
aws_access_key_id = 1xxxxxxxxxxxxxxxxxxx
aws_secret_access_key = 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[sandbox]
aws_access_key_id = 2xxxxxxxxxxxxxxxxxxx
aws_secret_access_key = 2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[a_client]
aws_access_key_id = 3xxxxxxxxxxxxxxxxxxx
aws_secret_access_key = 3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[personal]
aws_access_key_id = 4xxxxxxxxxxxxxxxxxxx
aws_secret_access_key = 4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Tips

Alias

I like to alias awsprofiles to ap by adding the following to .zshrc or .bashrc

alias ap = "awsprofiles"

Special Thanks

Created By

License

MIT (c) Nick Matenaar

Readme

Keywords

none

Package Sidebar

Install

npm i awsprofiles

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nicktho