aeropress
aeropress is a CLI program for deploying Docker images to AWS ECS. It receives a folder path that includes ECS task and service definitions and then does the jobs respectively;
Register ECS task definitions
Create Cloudwatch metrics for scaling policies
Create or update scaling policies for ECS services
Create or update alarms on Cloudwatch
Create or update ECS services
Installation
aeropress requires Python 3.9 or newer.
uv tool install aeropress
Development
uv sync # create .venv with aeropress and the dev tools uv run ruff check # lint uv run ty check # type check uv build # build sdist and wheel into dist/ uv publish # upload dist/ to PyPI
Usage
$ aeropress --help
usage: aeropress [-h] [--logging-level {debug,info,warning,error}] [--version] {deploy,clean,register} ...
aeropress AWS ECS deployment helper
positional arguments:
{deploy,clean,register}
sub-command help
deploy Deploy docker image to ECS.
clean Clean commands for stale entities on AWS.
register Register tasks on ECS.
options:
-h, --help show this help message and exit
--logging-level {debug,info,warning,error}
Print debug logs
--version show program's version number and exit
Run aeropress <command> --help for the options of each command.
Example
You must have defined an ECS cluster first. Then, you can define ECS tasks and services in yaml files under a folder (see example/foo.yaml) and run aeropress with required arguments.
Deploy an image to a service; registers its task definition, then updates the service:
aeropress deploy --path example --image-url 'registry.hub.docker.com/library/python' --service-names service-foo
Register a task definition without touching any service:
aeropress register --path example --task-definition task-foo --image-url 'registry.hub.docker.com/library/python'
Deregister task definition revisions that no service uses:
aeropress clean --stale-tasks
Log retention
aeropress creates the CloudWatch log groups named in logConfiguration.options.awslogs-group and sets their retention on every deploy or register. It is 7 days unless the task sets logRetentionDays:
task: family: task-foo logRetentionDays: 30
Only the values CloudWatch accepts are allowed (1, 3, 5, 7, 14, 30, 60, 90, …); see https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html
Metadata
Release files for aeropress 0.0.53
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 |
|---|---|---|---|---|
| aeropress-0.0.53.tar.gz | 10.6 kB | Without provenance | Details for aeropress-0.0.53.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aeropress-0.0.53-py3-none-any.whl | Python 3 | none | any | Details for aeropress-0.0.53-py3-none-any.whl |
Total release size: 25.4 kB
Release files / aeropress-0.0.53.tar.gz
| Download URL | aeropress-0.0.53.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddca913a6cbba2995532b0e220739cdb62435276352cc3db980ade988363cd1e
|
|
BLAKE2b-256 checksum How to use checksums |
4107e1df15e5b3c80d6158b480299dc6f41814b15ff28d9b41489347a1b421cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / aeropress-0.0.53-py3-none-any.whl
| Download URL | aeropress-0.0.53-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e971723857afba762f7dbb3c799a88a762adae26726ad130595663788843f062
|
|
BLAKE2b-256 checksum How to use checksums |
46172c717476fb746e9a3268d11ee55b592c5183813214f4d286e28de6c22707
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for aeropress 0.0.53
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.