Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-aws

cd 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).