首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Azure DevOps AWS CloudFormation Create/Update任务-失败“堆栈不存在”

Azure DevOps AWS CloudFormation Create/Update任务-失败“堆栈不存在”
EN

Stack Overflow用户
提问于 2020-12-08 06:59:40
回答 2查看 847关注 0票数 1

我配置了一个发布管道,用于使用AWS CloudFormation创建/更新堆栈任务。任务被配置为使用更改集,如下所示:

然而,由于某种原因,管道一直在失效。它失败是因为它测试堆栈的存在,发现它不存在,切换到“创建”模式,然后测试更改集的存在,而失败是因为更改集也不存在?这没什么意义。

代码语言:javascript
运行
复制
2020-12-08T03:54:36.5413925Z Checking existence for stack S2CSalesOrderStack
2020-12-08T03:54:37.5245618Z Test for existence of stack S2CSalesOrderStack returned error: 'ValidationError: Stack with id S2CSalesOrderStack does not exist'.
2020-12-08T03:54:37.5265140Z Stack does not exist, switching to create stack mode
2020-12-08T03:54:37.5267421Z Testing to see if change set S2CSalesOrderStack11 associated with stack S2CSalesOrderStack exists
2020-12-08T03:54:38.3717711Z Test for existence of change set S2CSalesOrderStack11 returned error: 'Stack [S2CSalesOrderStack] does not exist'.
2020-12-08T03:54:38.3724223Z Loading template file from 'D:\a\r1\a\_AWS-S2C-ProcessMessage-CI\serverless-output\serverless-output.yaml'
2020-12-08T03:54:38.3730075Z No parameters file specified
2020-12-08T03:54:38.3731723Z Setting capability CAPABILITY_IAM for stack
2020-12-08T03:54:38.3732908Z Setting capability CAPABILITY_NAMED_IAM for stack
2020-12-08T03:54:38.3734631Z Setting capability CAPABILITY_AUTO_EXPAND for stack
2020-12-08T03:54:38.3735285Z Creating CREATE type change set S2CSalesOrderStack11
2020-12-08T03:54:46.5889859Z Change set creation request failed with error: 'undefined' { InternalFailure
2020-12-08T03:54:46.5891500Z     at constructor.extractError (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:88282)
2020-12-08T03:54:46.5892456Z     at constructor.callListeners (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:108520)
2020-12-08T03:54:46.5893265Z     at constructor.emit (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:108230)
2020-12-08T03:54:46.5896438Z     at constructor.emitEvent (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:183886)
2020-12-08T03:54:46.5897267Z     at constructor.e (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:179393)
2020-12-08T03:54:46.5898003Z     at r.runTo (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:185728)
2020-12-08T03:54:46.5898720Z     at D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:185934
2020-12-08T03:54:46.5899455Z     at constructor.<anonymous> (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:179663)
2020-12-08T03:54:46.5900239Z     at constructor.<anonymous> (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:183942)
2020-12-08T03:54:46.5901203Z     at constructor.callListeners (D:\a\_tasks\CloudFormationCreateOrUpdateStack_7ef7cdfa-aa45-42c5-93c8-d7603643dd99\1.8.0\CloudFormationCreateOrUpdateStack.js:2:108626)
2020-12-08T03:54:46.5901689Z   message: undefined,
2020-12-08T03:54:46.5902055Z   code: 'InternalFailure',
2020-12-08T03:54:46.5902486Z   time: 2020-12-08T03:54:46.559Z,
2020-12-08T03:54:46.5903062Z   requestId: '26a7ef25-1e18-4e00-8721-fd07bbd90a53',
2020-12-08T03:54:46.5903486Z   statusCode: 500,
2020-12-08T03:54:46.5903851Z   retryable: true }
2020-12-08T03:54:46.5962341Z ##[error]InternalFailure
2020-12-08T03:54:46.6025994Z ##[section]Finishing: Create/Update Stack: S2CSalesOrderStack
EN

Stack Overflow用户

发布于 2020-12-09 03:52:59

可以按照以下步骤对此问题进行疑难解答:

首先检查用于创建AWS凭据服务连接的AWS帐户是否有cloudformation:DescribeStackscloudformation:DescribeStackEvents permissions。如果您使用IAM角色创建AWS凭据服务连接。您需要确保将上述权限分配给角色。见这里

确保您选择了正确的AWS Region。对于CloudFormation,区域是特定的。

手动删除存在的堆栈,或者在创建之前使用AWS CloudFormation删除堆栈任务删除堆栈。有关信息,请参阅下面的线程。

在创建新堆栈时“堆栈不存在”

不存在带有id的堆栈。

票数 1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65194429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档