一个针对ecs服务的固执己见的部署应用程序
ecs-pipeline-deplo的Python项目详细描述
ECS服务的一个固执己见的部署应用程序。
执行时,ecs pipeline deploy将检查 当前服务的群集。
如果标签不同,它将:
- 更新服务以使用新的任务定义
- (可选)等待新标记启动并运行以及所有其他任务 要停止的服务的定义。
如果标签是相同的,那么如果指定了--redeploy,它将有选择地重新部署服务; 或可以选择将任务定义复制到新的任务定义中,并将其部署为与-force参数不同的标记; 如果图像标签匹配,则{ STR 1 } $或<强>退出,并且未指定^ {Tt1}$,也不指定{TT3}$。
用法
usage: ecs-deploy [-h] [-f] [-k] [-r] [-w] [-o] [-d DELAY] [-v] [CLUSTER] [SERVICE] [IMAGE] Opinionated ECS deployment made easy positional arguments: CLUSTER The ECS cluster name to deploy in (default: None) SERVICE The ECS Service name to deploy (default: None) IMAGE The Docker image (with tag) to deploy for finding the task definition (default: None) optional arguments: -h, --help show this help message and exit -f, --force Create a new task definition for the image even if one already exists for the tagged version (default: False) -r, --redeploy Force a redeployment if the tagged images match (default: False) -w, --wait Wait for running tasks to be replaced (default: False) -o, --only-new If waiting, wait for only newly deployed tasks to be running (default: False) -d DELAY, --delay DELAY Seconds to delay before checking tasks while waiting on a deployment to finish (default: 5) -v, --verbose