ecs-deplojo
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
Using SSM secrets
When you want to use the AWS SSM secrets in your configuration you can use the secrets section, however this needs some additional configuration within AWS
At first you need an AWS IAM role to use as the ECS execution role, this role needs access to the secrets in Secrets Manager or Parameter store and will only be used during the startup of your Docker container.
Example configuration:
--
cluster_name: example
environment:
NORMAL_ENV_VAR: value_of_variable
secrets:
DATABASE_URL: /path/to/secret/DATABASE_URL
task_definitions:
web:
execution_role_arn: arn:aws:iam::<account_id>:role/execution_role_name
template: task_definitions/web.json
services:
web:
task_definition: web
When the container is started the secrets are available as environment variables and hidden in the AWS ECS console.
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)
Metadata
Release files for ecs-deplojo 0.9.0
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 |
|---|---|---|---|---|
| ecs-deplojo-0.9.0.tar.gz | 10.2 kB | Without provenance | Details for ecs-deplojo-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ecs_deplojo-0.9.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ecs_deplojo-0.9.0-py2.py3-none-any.whl |
Total release size: 22.2 kB
Release files / ecs-deplojo-0.9.0.tar.gz
| Download URL | ecs-deplojo-0.9.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7dd03d3bc74c06b2febd4e71a24116aed94aeb44c9d77cc5c150d2aa0326a32
|
|
BLAKE2b-256 checksum How to use checksums |
ef56ae98246fc0bf4db2f797e054b147a92de5a4c2f284e18fa19b015cd098e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7
|
Release files / ecs_deplojo-0.9.0-py2.py3-none-any.whl
| Download URL | ecs_deplojo-0.9.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0261b26111d961adb0051ec711a96ff88795ce389ccef67401703b1215194abb
|
|
BLAKE2b-256 checksum How to use checksums |
5b1f617ec321ff941f284522aa67f05e924339cc7502d96aa33073b453766811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7
|
Security for ecs-deplojo 0.9.0
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.