ENI is not deleted when sagemaker notebook instance is destroyed and a security group is attached to it #26090
Labels
bug
Addresses a defect in current functionality.
service/sagemaker
Issues and PRs that pertain to the sagemaker service.
service/vpc
Issues and PRs that pertain to the vpc service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Actually I'm using a simple configuration with two different modules.
The idea is to create an AWS sagemaker notebook instance in a subnet and then attach a SG to it.
Some detail about the two modules
Expected Behavior
ENI should be removed when terraform tries to destroy our sagemaker notebook instance, in order to avoid
dependency violations
when security group is deleted. Actually, this creates a deadlock and our security group cannot be deleted.The basic idea is that we need to delete ENI resource before trying to delete the attached SG. In the following AWS provider doc is described the process to use in order to avoid stucks during SG config changes, but is not mentioned how to overcome a fully deletion problem
Actual Behavior
After a bit, terraform destroy fails because ENI still exists and security group cannot be deleted.
Steps to Reproduce
References
Probably this issue is similar to:
The text was updated successfully, but these errors were encountered: