-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-lambda-nodejs): NodejsFunction cannot remove VPC configuration from a function - UPDATE_COMPLETE_CLEANUP_IN_PROGRESS #12827
Comments
I'm experiencing the same bug when trying to remove the VPC. The only solution to make the stack usable again is searching for the security group and remove it associated ENIs. |
Thanks for reporting! |
I don't know if this will be helpful, but I did a little detailed research. First, the ENI in problem is called The condition for this ENI to be removed is described like,,
https://docs.amazonaws.cn/en_us/AWSEC2/latest/WindowsGuide/using-eni.html In fact, when I tried it, the ENI automatically disappeared when I deleted the lambda VPC settings or deleted the Lambda function itself from the aws gui console. The stack update completes the update first and then cleans up any items no longer needed. |
@a-h it looks like this issue is partially fixed. When I tested today I still go the error message about the SecurityGroup failing to get deleted, but the stack did not get stuck in I think the remaining issue is with CloudFormation (it needs to successfully delete the SecurityGroup). I'll keep this issue open for tracking purposes. |
I suggest to anyone running into this issue to report this to the CloudFormation Coverage Roadmap if it hasn't been reported there already. |
I created a project that adds a Lambda function to a VPC, so I set the VPC
property
of the configuration and deployed the function.I then decided to stop the function from being part of the VPC, because the function's use case changed. I removed the
vpc
property, and re-deployed.On this change, the CloudFormation template dropped into
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS
and I couldn't make any more deployments. On looking in the event history, I could see the following:To resolve it, I had to manually delete the network interfaces related to the security group within the VPC. On this deletion, the CloudFormation stack became unstuck.
Reproduction Steps
What did you expect to happen?
For the function deployment to succeed completely.
What actually happened?
Subsequent deployments failed to complete with:
Environment
Other
I think the solution is to ensure that those network interfaces are deleted before the security group.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: