问题描述
我正在尝试为具有蓝绿色部署支持的AWS ECS编写云形成模板。蓝绿色功能是AWS最近在ECS中添加的,在云形成模板中找不到用于更新它的任何参考。他们提供了有关如何通过UI而不是通过云形成的文档。我想,AWS可能不会更新其云形成文档,因为它是一项新功能。查找文档的任何帮助将不胜感激。预先感谢您。
I am trying to write a cloud-formation template for AWS ECS with blue green deployment support. This blue-green feature was added recently by AWS in ECS and couldn't find any reference for updating it in cloud-formation template. They have given documentation on, how to do it through UI but not through cloud-formation. I guess, AWS might not updated their cloud-formation documentation as it is a new feature. Any help to find the documentation would be appreciated. Thanking you in advance.
推荐答案
已添加对CloudFormation中蓝色/绿色部署的支持。可以在文档中找到:
Support for blue/green deployment in CloudFormation has been added. It can be found here in the documentation:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html
在类型属性中,可以选择 CODE_DEPLOY作为部署类型。希望这可以帮助!
In the "Type" property you can choose "CODE_DEPLOY" as the deployment type. Hope this helps!
这篇关于在ECS上进行蓝/绿部署所需的Cloudformation脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!