AWS coco (console container)
This tool allows you to manage AWS Console Sessions with Firefox Containers
Quickstart
Ensure you've met the requirements.
$ pip install aws-coco
Usage
$ 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:
If you don't wish to install the extension through the marketplace, the source for the extension can be found here.
If not:
- Any browser supported by webbrowser
- Python >= 3.7
If you do not wish to use containers, make sure to specify the --no-container flag.
Installation
$ pip install aws-coco
Usage
This section explains how to use coco and covers some of the options available to you.
Basic Usage
$ 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:
alias coco-test=coco --color green --icon fingerprint --name test
Now you can just run:
$ coco-test
Credential Resolution
This project uses boto3. You can learn more about how boto3 resolves credentials here.
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
$ git clone https://github.com/wulfmann/aws-coco.git
$ git clone git@github.com:wulfmann/aws-coco.git
Install Dependencies
$ poetry install
Run the command
$ poetry run coco -c green -i fingerprint
Run tests
$ poetry run pytest
Metadata
Release files for aws-coco 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws-coco-0.1.7.tar.gz | 4.9 kB | Without provenance | Details for aws-coco-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_coco-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for aws_coco-0.1.7-py3-none-any.whl |
Total release size: 10.4 kB
Release files / aws-coco-0.1.7.tar.gz
| Download URL | aws-coco-0.1.7.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c499d9e58ae558009a534bfad5797fd38a710e6d7f849da7eda6ebe03f854d3
|
|
BLAKE2b-256 checksum How to use checksums |
430a1db925778e665f0e491ee72dcaef25232fd62e7744f55e635731872cd0db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Darwin/19.5.0
|
Release files / aws_coco-0.1.7-py3-none-any.whl
| Download URL | aws_coco-0.1.7-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a84de4792bf48e6c6dd8cb0a1c1d9bfb1935b76699c5e8be43c41638505e2b7
|
|
BLAKE2b-256 checksum How to use checksums |
edeb765fda09742d876b8decdcd8ddc4dba71c33c4908a2b22032d577d3726c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Darwin/19.5.0
|
Security for aws-coco 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.