Attempting to destroy a security group that can't be destroyed due to being attached to an instance, hangs instead of returns an error message #4982
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
upstream-terraform
Addresses functionality related to the Terraform core binary.
Community Note
Terraform Version
Affected Resource(s)
Expected Behavior
Terraform should have reported that it can't delete the security group because it's currently used by an instance. This is the behavior if you try and delete a security group via console.
Actual Behavior
Terraform got stuck on attempting to delete the security group.
Steps to Reproduce
Create a security group via terraform. Attach the security group to an instance that's not in terraform. Attempt to destroy the security group via terraform.
The text was updated successfully, but these errors were encountered: