aws-coco-0.1.7
توضیحات
A utility for managing AWS Console Sessions with Firefox Containers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aws-coco-0.1.7 |
| نام | aws-coco |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joe Snell |
| ایمیل نویسنده | joepsnell@gmail.com |
| آدرس صفحه اصلی | https://github.com/wulfmann/aws-coco |
| آدرس اینترنتی | https://pypi.org/project/aws-coco/ |
| مجوز | MIT |
# AWS coco (console container)
This tool allows you to manage AWS Console Sessions with Firefox Containers
## Quickstart
Ensure you've met the [requirements](#requirements).
```bash
$ pip install aws-coco
```
Usage
```bash
$ coco -c green -i fingerprint
```
You should now have a new browser tab with your aws session!
Continue reading for a more in-depth walkthrough of the setup.
If `coco` is too generic, this package also exposes `aws_coco`.
## Requirements
If using containers:
- [Firefox](https://www.mozilla.org/en-US/firefox/new/)
- [Firefox Multi-Account Containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/)
- [Open URL in Container Extension](https://addons.mozilla.org/en-US/firefox/addon/open-url-in-container/)
If you don't wish to install the extension through the marketplace, the source for the extension can be found [here](https://github.com/honsiorovskyi/open-url-in-container).
If not:
- Any browser supported by [webbrowser](https://docs.python.org/3.8/library/webbrowser.html#webbrowser.get)
- [Python >= 3.7](http://python.org/)
If you do not wish to use containers, make sure to specify the `--no-container` flag.
## Installation
```bash
$ pip install aws-coco
```
## Usage
This section explains how to use `coco` and covers some of the options available to you.
### Basic Usage
```bash
$ coco --color green --icon fingerprint --name test
```
This will open the url in a `green` firefox container tab named `test` with a `fingerprint` icon.
This can be annoying to type, so it's recommended to build aliases for your accounts.
Example alias:
```bash
alias coco-test=coco --color green --icon fingerprint --name test
```
Now you can just run:
```bash
$ coco-test
```
### Credential Resolution
This project uses [boto3](https://github.com/boto/boto3). You can learn more about how `boto3` resolves credentials [here](https://boto3.amazonaws.com/v1/documentation/api/1.9.42/guide/configuration.html#configuring-credentials).
If you specify the `--profile` flag, `coco` will pass that value into the `boto3` session and it will attempt to use the corresponding section in the `~/.aws/credentials` file for the session.
### Options
This section contains a description of the various options available to you. You can also pass the `-h` flag to print the help.
|Flag|Description|Default|Required|
|----|-----------|-------|--------|
|`--color`, `-c`|The container tab's color||false|
|`--container`, `--no-container`|Determines if the url should be opened in a firefox container||true|
|`--destination`, `-d`|The destination URL to open in the AWS console||false|
|`--icon`, `-i`|The container tab's icon||false|
|`--name`, `-n`|The container tab's name|The profile name if passed|false|
|`--open`, `--no-open`|Determines if the url should be automatically opened in the browser||true|
|`--profile`, `-p`|The AWS profile to use||false|
### Available Colors
|value|
|-----|
|blue|
|turquoise|
|green|
|yellow|
|orange|
|red|
|pink|
|purple|
### Available Icons
|value|
|-----|
|fingerprint|
|briefcase|
|dollar|
|cart|
|vacation|
|gift|
|food|
|fruit|
|pet|
|tree|
|chill|
|circle|
|fence|
## Development
```bash
$ git clone https://github.com/wulfmann/aws-coco.git
$ git clone git@github.com:wulfmann/aws-coco.git
```
Install Dependencies
```bash
$ poetry install
```
Run the command
```bash
$ poetry run coco -c green -i fingerprint
```
Run tests
```bash
$ poetry run pytest
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.15.10,<2.0.0 | boto3 |
| >=2.24.0,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl aws-coco-0.1.7:
pip install aws-coco-0.1.7.whl
نصب پکیج tar.gz aws-coco-0.1.7:
pip install aws-coco-0.1.7.tar.gz