Lucyna
Lucyna is a library that tries to help you with your daily tasks with AWS ECS and AWS Lambda (more might come in future).
Screenshots
Summary of functionalities
ECS
Cluster
Service
- Listing of all services
- Dashboard, which includes
CPUUtilizationandMemoryUtilizationplots for service (refreshed automatically)
Task
- Run task, returns information about ran task, e.g. logs output from it (refreshed automatically)
- Listing of all running tasks
- Show single task, displays information about running task (refreshed automatically)
- Show task's logs (refreshed automatically)
Lambda
- Listing of all lambdas
More detailed information about available commands below.
Installation & usage
As python package
pip install lucyna
lucyna
# with aws-vault
aws-vault exec my-aws-profile -- lucyna
With docker
# build image
docker build -t lucyna
docker run -it --rm --name lucyna lucyna ecs
# with aws-vault
docker run -it --rm --env-file <(aws-vault exec my-aws-profile -- env | grep "^AWS_") --name lucyna lucyna ecs
What lucyna can do?
ECS
Cluster
List of available clusters
lucyna ecs cluster list
Service
List of available services
lucyna ecs service list [OPTIONS]
Options:
-c, --cluster TEXT
Dashboard for service
lucyna ecs service dashboard [OPTIONS] SERVICE
Options:
-c, --cluster TEXT
Task
Run task
lucyna ecs task run [OPTIONS] TASK_DEFINITION [COMMAND]...
Options:
-c, --cluster TEXT
--network-configuration TEXT
--capacity-provider-strategy TEXT
TASK_DEFINITION - you can either provide full definition e.g. my-definition:123 or just name, my-definition. If no number is provided, latest version is assumed.
[COMMAND] - any command that should be executed on ECS task
Examples:
Running with Fargate
lucyna ecs task run epsy-dynks --capacity-provider-strategy '{"capacityProvider": "FARGATE"}' --network-configuration '{"awsvpcConfiguration":{"subnets":["subnet-1234567890"],"securityGroups":["sg-123456789"],"assignPublicIp":"DISABLED"}}' -- my_command subcommand --one-option --another-option="test"
List of running tasks
lucyna ecs task list [OPTIONS]
Options:
-c, --cluster TEXT
Display information about ran task
lucyna ecs task show [OPTIONS] TASK_ID
Options:
-c, --cluster TEXT
Display task logs
lucyna ecs task logs [OPTIONS] TASK_ID
Options:
-c, --cluster TEXT
Lambda
List of available lambdas
lucyna lambda list [OPTIONS]
Options:
--region TEXT Region e.g. us-east-2
Can I use grep?
Yes! All commands results (but dashboards) can be filtered with grep
Metadata
Release files for lucyna 0.11.2
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 | |
|---|---|---|---|---|
| lucyna-0.11.2.tar.gz | 13.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lucyna-0.11.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.2 kB
Release files / lucyna-0.11.2.tar.gz
| Download URL | lucyna-0.11.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c3423893468118dabff3a9224d52f4eb84cba0437eb5e773247239c33746ee
|
|
BLAKE2b-256 checksum How to use checksums |
6ac1aa340b3df4b0188ef03e25d1b50c68743e10f64b160b87ef70205e14c68e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / lucyna-0.11.2-py3-none-any.whl
| Download URL | lucyna-0.11.2-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42a60ef8180aa487d13bcb0d7ef3bf9d83be9da0453e708f40c824a1dcd8ce1d
|
|
BLAKE2b-256 checksum How to use checksums |
a6c49ebae61f28a2773e9754bc96bae45a34ecee6e550c8062718fa52267b2f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for lucyna 0.11.2
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.