-
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
Security Group tries to be destroyed before detaching from RDS Cluster #9692
Comments
Just encountered this issue in I had to manually remove the security group from the RDS instances and then run the |
This occurs with security groups attached to |
This issue still exist with:
|
Confirming this is still a problem in versions. In my case I have EC2 instances attached to the SG and it does not try to detach before destroying the SG.
|
Same for load balancer attached security groups. Renaming TF resource
|
It happens as well to SGs attached through ASGs. |
Also applies to VPC endpoint implicitly created by |
I have the same issue with RDS and VPC SG. Running TF v1.1.9 & AWS v4.8.0 |
Similar issue with EC2 instance hashicorp/terraform#8617. Does anyone have any workaround for disassociating security group first? |
Getting this issue when leveraged the AWS provider RDS tf module. I've tried the create_before_destroy option on the security group, you can see the RDS security_group_rule get updated but this doesn't not get applied to the rds cluster. I am having to manually updated the attached security groups to a RDS instance for the new security group to be added Please can we get an update on this please or has anyone found a non manual workaround for this please |
Community Note
Terraform Version
Terraform v0.12.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
No Panic Output, just keeps trying to delete the SG indefinetely
Expected Behavior
The SG should be deleted after updating the RDS Cluster SGs
Actual Behavior
It tries to delete the SG before removing the SG from RDS Cluster
Steps to Reproduce
Terraform will recognize that the SG needs to be destroyed and removed from RDS Cluster, but it keeps trying to remove the SG before detaching it from the RDS Cluster.
Important Factoids
Nothing
References
The text was updated successfully, but these errors were encountered: