-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Detatch hanging ENIs created by DMS Instance #7600
Comments
Having the exact same issue but seeing it with Security Groups attached to DMS Replication Instances not being deleted, due to the dissassociated ENIs not being removed by Terraform. |
Just encountering this... almost 2 years later. |
Also encountering the same issue with the security group not being able to delete because there is a ENI attached that does not get deleted by terraform. |
Why is this labeled an "enhancement?" It seems like a bug to me. You can't |
Also encountering this issue. Had to remove the ENI manually in the console. |
this is still an issue, encountering it as well |
Bump @ewbankkit - can you reclassify this as a To summarise, DMS creates and associates network interface, but destruction leaves the ENI behind. If you create and associate a security group at the same time, it can't delete the security group and throws a Super annoying but must be a relatively trivial fix? 🙏 |
This should be a bug |
Community Note
Terraform Version
Affected Resource(s)
aws_subnet
aws_dms_replication_instance
aws_dms_replication_subnet_group
Terraform Config File(s)
Debug Output
None
Panic Output
None
Expected Behavior
All subnets are destroyed with no issue
Actual Behavior
This is essentially a duplicate of #829 because I'm hitting the same issue but with a different service. The DMS instance stands up it's own ENI the same way Lambdas do, so on destroy Terraform hangs waiting for a
successful
response from the subnet the ENI is in until timing out. If I go into the console while the destroy is running and manually delete the ENI Terraform successfully destroys the subnet and continues on with no issue.I've tried giving the DMS instance the necessary EC2 permissions as per the comments in #829 and doing the destroy in multiple steps, destroying the DMS instance first and then destroying the rest of the infrastructure separately, but the ENI is still not destroyed. If I don't build the subnet group along with the DMS instance the ENI is still created, but apparently not attached to the subnet because the destroy has no issues in that case. I'm hoping the solution for this will be about the same as it was with the Lambdas.
Steps to Reproduce
stand up a DMS instance inside a VPC with a subnet group attached
terraform destroy
Important Factoids
None
References
The text was updated successfully, but these errors were encountered: