Amazon ECS部署工具
ecs-deplojo的Python项目详细描述
Amazon ECS的部署工具。
安装
pip安装ecs deplojo
用法
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.
示例配置
---cluster_name:exampleenvironment:DATABASE_URL:postgresql://task_definitions:web:template:task_definitions/web.jsonoverrides:uwsgi:memory:512portMappings:-hostPort:0containerPort:8080protocol:tcpmanage:template:task_definitions/manage.jsonservices:web:task_definition:webbefore_deploy:-task_definition:managecontainer:uwsgicommand:manage.py migrate --noinputafter_deploy:-task_definition:managecontainer:uwsgicommand:manage.py clearsessions
日志输出示例
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)