amazon-web-services - 维护 Jenkins 中多个 cloudformation 堆栈之间的部署顺序

标签 amazon-web-services jenkins-pipeline aws-cloudformation aws-cli

我正在尝试通过 Jenkins 部署多个基础云结构,在其中一种情况下,有两个堆栈,其中一个堆栈依赖于另一个堆栈。由于部署脚本将无法维持该顺序。那么我怎样才能在云形成中实现它

PS:有什么方法可以让依赖堆栈等待其他堆栈部署。这里Jenkins可以并行部署多个堆栈。

最佳答案

您是否尝试过使用 Stack资源类型本身?

The AWS::CloudFormation::Stack type nests a stack as a resource in a top-level template.

您可以将其与 WaitCondition 之类的东西一起使用或 DependsOn属性来确保一个资源在另一个资源之前创建,因此您可以有一个父堆栈来创建两个 nested Stacks ,其中一个依赖于另一个。

关于amazon-web-services - 维护 Jenkins 中多个 cloudformation 堆栈之间的部署顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68085286/

相关文章:

vb6 - Jenkins 管道 : build steps not running concurrently?

amazon-web-services - 具有多个条件的 AWS IAM 策略语法错误

postgresql - 子查询存在 - 返回单列

amazon-web-services - Kubernetes:删除后,Replication Controller仍然存在

groovy - 如何列出 Jenkinsfile 中已经可用的变量?

amazon-web-services - Amazon Web Services - 在 CloudFormation 中用自己的名称标记 S3 存储桶

c# - ASP.NET MVC 中的 DynamoDB session 状态

mysql - 当jenkins没有数据库时,从Jenkins Pipeline访问远程数据库

aws-cloudformation - 在子下的另一个堆栈中导出和导入值

amazon-web-services - 云形成 : How to update a particular without updating the entire stackset?