AWS CloudFormation 卡在 DELETED_FAILED 状态
AWS CloudFormation is stuck on DELETED_FAILED status
我有一些状态为 DELETED_FAILED 的 AWS CloudFormation 堆栈。构建这些 CFT 时出现问题,导致它们最初超时,然后我尝试删除它们。
在就另一个问题联系 AWS 支持时,他们提到有一种方法可以解决这些问题。我怎样才能移除处于 DELETED_FAILED 状态的堆栈?
识别附加到堆栈的资源并从 AWS Web 控制台手动删除它们。
您可以在云形成堆栈详细信息中找到附加到您的堆栈的资源。
然后你应该能够在 DELETE_FAILED 状态下清除堆栈。
希望对您有所帮助。
你检查过Delete Stack Fails了吗?
When stacks are in the DELETE_FAILED state because AWS CloudFormation
couldn't delete a resource, rerun the deletion with the
RetainResources parameter and specify the resource that AWS
CloudFormation can't delete. AWS CloudFormation deletes the stack
without deleting the retained resource. Retaining resources is useful
when you can't delete a resource, such as an S3 bucket that contains
objects that you want to keep, but you still want to delete the stack.
After you delete the stack, you can manually delete retained resources
by using their associated AWS service.
我删除了一个管道堆栈,但无法删除它创建的堆栈,因为 IAM 角色不再存在。东西似乎需要按照一定的顺序删除。我重新部署了管道,然后才能够删除堆栈。
AWS 现在还提供了排除阻止删除的资源的选项。
我正在使用 CDK 并部署了一个堆栈,然后销毁了它。
我 运行 进入确切的 DELETED_FAILED 状态问题。
如何修复此状态?
在搜索栏中搜索“CloudFormation”。
转到堆栈。
Select DELETED_FAILED 堆栈并按删除按钮。
如果您使用 cdk
以确保所有资源都已被删除
cdk list
your_stack_name
然后删除这个堆栈
cdk destroy your_stack_name
我有一些状态为 DELETED_FAILED 的 AWS CloudFormation 堆栈。构建这些 CFT 时出现问题,导致它们最初超时,然后我尝试删除它们。
在就另一个问题联系 AWS 支持时,他们提到有一种方法可以解决这些问题。我怎样才能移除处于 DELETED_FAILED 状态的堆栈?
识别附加到堆栈的资源并从 AWS Web 控制台手动删除它们。 您可以在云形成堆栈详细信息中找到附加到您的堆栈的资源。 然后你应该能够在 DELETE_FAILED 状态下清除堆栈。
希望对您有所帮助。
你检查过Delete Stack Fails了吗?
When stacks are in the DELETE_FAILED state because AWS CloudFormation couldn't delete a resource, rerun the deletion with the RetainResources parameter and specify the resource that AWS CloudFormation can't delete. AWS CloudFormation deletes the stack without deleting the retained resource. Retaining resources is useful when you can't delete a resource, such as an S3 bucket that contains objects that you want to keep, but you still want to delete the stack. After you delete the stack, you can manually delete retained resources by using their associated AWS service.
我删除了一个管道堆栈,但无法删除它创建的堆栈,因为 IAM 角色不再存在。东西似乎需要按照一定的顺序删除。我重新部署了管道,然后才能够删除堆栈。
AWS 现在还提供了排除阻止删除的资源的选项。
我正在使用 CDK 并部署了一个堆栈,然后销毁了它。 我 运行 进入确切的 DELETED_FAILED 状态问题。
如何修复此状态?
在搜索栏中搜索“CloudFormation”。 转到堆栈。
Select DELETED_FAILED 堆栈并按删除按钮。
如果您使用 cdk
以确保所有资源都已被删除cdk list
your_stack_name
然后删除这个堆栈
cdk destroy your_stack_name