Skip to main content

Deployment tool for Amazon ECS

Project description

Deployment tool for Amazon ECS.

Installation

pip install ecs-deplojo

Usage

Usage: ecs-deplojo [OPTIONS]

Options:
  --config FILENAME   [required]
  --var VAR
  --dry-run
  --output-path PATH
  --role-arn <optional arn>
  --help              Show this message and exit.

Example configuration

---
cluster_name: example

environment:
    DATABASE_URL: postgresql://

task_definitions:
  web:
    template: task_definitions/web.json
    overrides:
      uwsgi:
        memory: 512
        portMappings:
          - hostPort: 0
            containerPort: 8080
            protocol: tcp
  manage:
    template: task_definitions/manage.json

services:
  web:
    task_definition: web

before_deploy:
  - task_definition: manage
    container: uwsgi
    command: manage.py migrate --noinput

after_deploy:
  - task_definition: manage
    container: uwsgi
    command: manage.py clearsessions

Example log output

Starting deploy on cluster example (1 services)
Registered new task definition web:10
Starting one-off task 'manage.py migrate --noinput' via manage:10 (uwsgi)
Updating service web with task defintion web:10
Waiting for deployments
Waiting for services: web (0/2)
Waiting for services: web (1/2)
Waiting for services: web (2/2)
Deployment finished: web (2/2)
Starting one-off task 'manage.py clearsessions' via manage:10 (uwsgi)

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

ecs-deplojo-0.8.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

ecs_deplojo-0.8.2-py2.py3-none-any.whl (11.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ecs-deplojo-0.8.2.tar.gz.

File metadata

  • Download URL: ecs-deplojo-0.8.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for ecs-deplojo-0.8.2.tar.gz
Algorithm Hash digest
SHA256 a35b5c1fbc315089f03ecc5cbe36531f5d2c8955ce1ffeeb49c6c74861ce95ca
MD5 727fa9275b11eee80e60d2aebac45681
BLAKE2b-256 18435beef72e24c9bde917da11617b1cc77396b542b4487ad261db686553e561

See more details on using hashes here.

File details

Details for the file ecs_deplojo-0.8.2-py2.py3-none-any.whl.

File metadata

  • Download URL: ecs_deplojo-0.8.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for ecs_deplojo-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d48f43f7064c0ff6dc45d752ae371d1c320099a270b9b4b44d1038999f7f9f4f
MD5 56cb4056f13ed34d8de56b9ee38b2b34
BLAKE2b-256 f2869f95b5d27876051d86bf7da5202b37d6a7714d6baf20d5b71e805c821a44

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