Skip to main content

Deployment tool for Amazon ECS

Project description

ecs-deplojo
===========

Deployment tool for Amazon ECS.

Installation
------------

`pip install ecs-deplojo`




Usage
-----

.. code-block:: console

Usage: ecs-deplojo [OPTIONS]

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


Example configuration
---------------------

.. code-block:: yaml
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
------------------

.. code-block:: console

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.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

ecs_deplojo-0.2.0-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ecs-deplojo-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ecs-deplojo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cec376e714108d179ae25930ce908f081685ad4b489aacc3f659218ea1bada54
MD5 a05b81d355ec3dea308bdd9c4bdbb531
BLAKE2b-256 9e4b875817d1579613e96681af67492b08da9d57f8ec1c0e1a74dd29822dec7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecs_deplojo-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3dc46783d5ffad54b7071846b055e2edfc8b7cef65ec72aed96f49a3841b601
MD5 9b71185492984f6c1f5f12f270a7f55c
BLAKE2b-256 7da7fe2c2163b8ba93fe1c63bbecd3ff9ef06bb9354948433b48fca7d8d3a602

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