Skip to main content

Lucyna is a library that tries to help you with your daily tasks with AWS ECS and AWS Lambda (more might come in future).

Project description

Lucyna

PyPI

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

Dashboard Cluster listing Services list

Summary of functionalities

ECS

Cluster

Service

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lucyna-0.11.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

lucyna-0.11.2-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file lucyna-0.11.2.tar.gz.

File metadata

  • Download URL: lucyna-0.11.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for lucyna-0.11.2.tar.gz
Algorithm Hash digest
SHA256 12c3423893468118dabff3a9224d52f4eb84cba0437eb5e773247239c33746ee
MD5 c2cba311f1b976d6ef7881e28a351408
BLAKE2b-256 6ac1aa340b3df4b0188ef03e25d1b50c68743e10f64b160b87ef70205e14c68e

See more details on using hashes here.

File details

Details for the file lucyna-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: lucyna-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for lucyna-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42a60ef8180aa487d13bcb0d7ef3bf9d83be9da0453e708f40c824a1dcd8ce1d
MD5 f138820c8023443e6512595aa631f8a3
BLAKE2b-256 a6c49ebae61f28a2773e9754bc96bae45a34ecee6e550c8062718fa52267b2f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page