https://github.com/nicktho/awsprofiles
🔑 Manage and switch between AWS profiles
https://github.com/nicktho/awsprofiles
aws awsprofiles cli node
Last synced: about 1 year ago
JSON representation
🔑 Manage and switch between AWS profiles
- Host: GitHub
- URL: https://github.com/nicktho/awsprofiles
- Owner: Nicktho
- License: mit
- Created: 2017-05-08T03:57:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T04:48:13.000Z (over 8 years ago)
- Last Synced: 2025-03-31T17:07:10.985Z (over 1 year ago)
- Topics: aws, awsprofiles, cli, node
- Language: JavaScript
- Homepage:
- Size: 792 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# awsprofiles
> Manage and switch between AWS profiles
## What's this?
* [CLI](#cli) to switch between saved AWS profiles
* Alternative [Interactive UI](#interactive-ui)
* Inspired by [np](https://github.com/sindresorhus/np)
## Install
```bash
$ yarn global add awsprofiles
```
## CLI
```bash
$ awsprofiles --help
A tool to manage and switch between aws profiles
Usage
$ awsprofiles
Examples
$ awsprofiles
$ awsprofiles prod
$ awsprofiles dev
```
## Interactive UI
Running `awsprofiles` without arguments provides an interactive UI similar to that of [np](https://github.com/sindresorhus/np)
## Configuration
Expects an `~/.aws/credentials` 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
* [np](https://github.com/sindresorhus/np)
## Created By
* [Nick Matenaar](https://github.com/nicktho)
## License
[MIT (c) Nick Matenaar](LICENSE)