Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sireliah/powerline-aws
Powerline-status segment that checks your current AWS profile
https://github.com/sireliah/powerline-aws
Last synced: 15 days ago
JSON representation
Powerline-status segment that checks your current AWS profile
- Host: GitHub
- URL: https://github.com/sireliah/powerline-aws
- Owner: sireliah
- Created: 2020-06-25T15:17:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T09:34:43.000Z (about 4 years ago)
- Last Synced: 2024-08-01T18:29:42.959Z (4 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Powerline-aws
This is the [Powerline](https://github.com/powerline/powerline) segment to show current AWS account and role, so you are less like to make a deadly mistake.Tested with BASH.
## Installation
Firstly, install the package locally.
```
git clone https://github.com/sireliah/powerline-awscd powerline-aws
python3 setup.py install --user
```Then add the colorscheme in the `~/.config/powerline/colorschemes/default.json`
```json
(...)
"aws_profile": { "fg": "white", "bg": "darkcyan", "attrs": [] }
}
}
```Finally add the segment to your powerline shell config in `~/.config/powerline/themes/shell/default.json`.
```json
{
"segments": {
"left": [
(...)
{
"function": "powerline_aws.aws_profile",
"priority": 10
}
],
"right": []
}
}
```
Then you can restart the powerline daemon by:```
powerline-daemon -k
```and check if the segment works in a BASH terminal that has AWS session (namely the `$AWS_PROFILE` environment variable).