Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Barbour committed Sep 4, 2020
1 parent 573bc14 commit 368034f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Utilizes `aws configure list-profiles` via [aws-cli](https://aws.amazon.com/cli/) to allow the switching of profiles using [Prompts](https://github.com/terkelg/prompts). No more remembering what your AWS profiles are called and typing export statements in terminal. Run the program via a helper shell function, select the profile you want to use and that's it.

![aws-interactive-switch-profile demo](demo/demo.gif)

### Install

> $ npm install -g aws-interactive-switch-profile
Expand All @@ -10,9 +12,9 @@ Utilizes `aws configure list-profiles` via [aws-cli](https://aws.amazon.com/cli/

`aws-switch-profiles '/tmp/foo.txt'`

Because you cannot persist global environment variables outside of Node and Prompts uses stdout, you must pass a writable temp file and also use some sort of helper function to facilitate the process.
Because you cannot persist global environment variables outside of Node and Prompts uses stdout, you must pass a writable temp file and also use some sort of helper function to facilitate the process. See `sample-scripts` folder for fish and zsh functions.

> example zsh script
> example zsh function
```
aisp() {
unset _PROFILE;
Expand Down
Binary file added demo/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-interactive-switch-profile",
"version": "1.2.2",
"version": "1.2.3",
"description": "Switch between AWS profiles",
"author": "Emily Barbour",
"license": "MIT",
Expand All @@ -13,5 +13,18 @@
"dependencies": {
"prompts": "^2.3.0"
},
"repository": "git://github.com/notacoat/aws-interactive-switch-profile.git"
"repository": "git://github.com/notacoat/aws-interactive-switch-profile.git",
"keywords": [
"amazon web services",
"AWS_PROFILE",
"aws",
"aws-cli",
"cli",
"command line",
"credentials",
"nodejs",
"node",
"terminal",
"utility"
]
}

0 comments on commit 368034f

Please sign in to comment.