aws / aws/aws-sam-cli

Allow the removal of security groups in a VPC without causing UPDATE_COMPLETE_CLEANUP_IN_PROGRESS to be stuck for 40m+ due to ENI association.

Open
#5,084 2 comments 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

I'm sure this isn't news, but I couldn't find an issue to track. Some time ago in my template I defined a local security group like:

```yaml
NoOpSecurityGroup:
Type: AWS::EC2::SecurityGroup
```

Which was associated with a function to force it to have its own ENI. Now I did an update to remove the security group, deployment goes through but it gets stuck cleaning up.

Screen Shot 2023-04-27 at 10 56 38 PM

Same issue in other frameworks:
* Serverless Framework: https://github.com/serverless/serverless/issues/5008
* Terraform https://github.com/hashicorp/terraform-provider-aws/issues/10329

I don't know what the solution is here, but having the builds blocked for 40+ minutes on something important makes me pretty nervous.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.