Skip to main content

Helper for deploying Docker images to AWS ECS.

Project description

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 works with Python3.

pip3 install aeropress

Usage

$ aeropress --help
usage: cli.py [-h] [--logging-level {debug,info,warning,error}] [--version]
              {deploy,clean} ...

aeropress AWS ECS deployment helper

positional arguments:
  {deploy,clean}        sub-command help
    deploy              Deploy docker image to ECS.
    clean               Clean commands for stale entitites on AWS.

optional arguments:
  -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

Example

You must have defined an ECS cluster first. Then, you can define ECS tasks and services in a yaml file and run aeropress with required arguments.

aeropress deploy --path 'example/foo.yaml' --image-url 'registry.hub.docker.com/library/python' --service-name service-foo

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

aeropress-0.0.36.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file aeropress-0.0.36.tar.gz.

File metadata

  • Download URL: aeropress-0.0.36.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for aeropress-0.0.36.tar.gz
Algorithm Hash digest
SHA256 0f1834821b30b58552d4458a1b71df1f8e4f701e491092a6be24f2730c9ba8bc
MD5 894c4e4103bddcc7cf53ee3d13413925
BLAKE2b-256 7a696cb183fd1dae6178898ed0414cd53100b5eb83a4014b13e1772874a4f33b

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