简体   繁体   English

如何在AWS Opsworks中终止部署?

[英]How do I kill a deployment in AWS Opsworks?

How do I kill a long running deployment in Amazon Opsworks? 如何在Amazon Opsworks中终止长时间运行的部署?

We run deployments to an integration environment everytime we commit to our code repo. 每次我们提交代码仓库时,我们都会将部署运行到集成环境。 Our current deployments are taking a long time, which causes deployments to stack on top of each other in Opsworks. 我们当前的部署需要很长时间,这会导致部署在Opsworks中相互堆叠。 We're working on making our deployment process for the application more efficient, but until we get that sorted out, is there an easy way to kill a deployment so we can just run the latest one in the queue? 我们正在努力使应用程序的部署过程更加高效,但在我们解决这个问题之前,是否有一种简单的方法来终止部署,以便我们可以在队列中运行最新的部署?

Unfortunately there is no easy way. 不幸的是,没有简单的方法。

There is no API call to cancel them. 没有API调用来取消它们。 So the only possible approach would be checking on the instance if it's necessary to run the deployment or skip it. 因此,唯一可行的方法是检查实例是否需要运行部署或跳过部署。 You can achieve this with a custom cookbook. 您可以使用自定义菜谱来实现此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM