CloudFormation问题:无法删除堆栈 [英] CloudFormation issue: couldn't delete stack

查看:57
本文介绍了CloudFormation问题:无法删除堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我们的资源创建CloudFormation模板,其中包括Lambda函数,API网关,角色等.为验证我们的模板,我使用它创建了CloudFormation堆栈,请检查一些我更新的资源,然后删除堆栈.但是上次我尝试删除堆栈时收到了这样的消息:

I create CloudFormation template for our resources, it includes Lambda functions, API Gateways, Roles, etc. For verifying our template I create CloudFormation stack using it, check some resources which I updated and after that I delete stack. But last time I got such message when I tried to delete stack:

CloudFormation正在等待与Lambda函数需要清除.

CloudFormation is waiting for NetworkInterfaces associated with the Lambda Function to be cleaned up.

我试图停止删除过程并重新启动它,但是我再次遇到相同的问题.有什么问题,我该如何解决?

I tried to stop deletion process and restart it, but I faced the same issue again. What is the problem and how can I fix that?

推荐答案

这是一个众所周知的问题.您可以做几件事.

This is a well known issue. There are couple of things you can do.

1)等待删除失败.然后尝试删除.它应该显示一个复选框来跳过NetworkInterface.选择那个.

1) Wait for the deletion to fail. Then try to delete. It should show you a checkbox to skip NetworkInterface. Select that.

2)转到 EC2-> NetworkInterfaces 并分离/删除资源所使用的NIC.然后删除您的CFT堆栈.

2) Go to EC2-->NetworkInterfaces and detach/delete the NIC that was used by your resources. Then delete your CFT stack.

这篇关于CloudFormation问题:无法删除堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆