gpt4 book ai didi

azure-devops - Azure DevOps AWS CloudFormation 创建/更新堆栈任务 - 失败 'stack does not exist'

转载 作者:行者123 更新时间:2023-12-03 07:23:56 24 4
gpt4 key购买 nike

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

enter image description here

但是由于某种原因,管道不断失败。它失败是因为它测试堆栈是否存在,发现它不存在,切换到“创建”模式,但随后测试更改集是否存在,并失败,因为更改集也不存在?这没有任何意义。

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

最佳答案

您可以按照以下步骤排查问题:

首先检查用于创建 AWS Credentials 服务连接的 AWS 账户是否具有 cloudformation:DescribeStackscloudformation:DescribeStackEvents 权限。如果您使用 IAM 角色创建 AWS Credentials 服务连接。您需要确保将上述权限分配给该角色。请参阅here .

确保您选择正确的 AWS 区域。因为 CloudFormation 是特定于区域的。

手动删除现有堆栈,或使用 AWS CloudFormation 删除堆栈创建之前删除堆栈的任务。请参阅下面的主题以获取信息。

Stack does not exist" while creating a new stack

Stack with id does not exist

关于azure-devops - Azure DevOps AWS CloudFormation 创建/更新堆栈任务 - 失败 'stack does not exist',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65194429/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com