Open hashibot opened 7 years ago
This issue still exists and is preventing me from destroying an RDS database and the subnets as per this issue that is closed
https://github.com/hashicorp/terraform/issues/5901
Is there any update on when this will be resolved?
has this even been resolved? I face the same issue.
tf v.0.11.1
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Also getting the 'already exists' error when updating in place. Does anyone have a workaround?
I've just encountered this today -- changing the VPC on the RDS instance has caused terraform to want to remove the old now unused subnet, but its failing with the above error.
Same error here when trying to delete RDS db, it tries to delete the db subnet first and fails with "cannot delete the subnet group because at least one database cluster is still using it".
Same issue when trying to switch-out subnets on an RDS
Welp, we've crossed the five year mark on this issue. 🙄
Same here:
Snap...
Error: InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'db-default-20210728144848284500000005' because at least one database instance: db-default is still using it.
│ status code: 400, request id: 239ea9a4-2dc2-4638-a7a5-e24571922f90
It should either wait until the database(s) have been confirmed as deleted and then try and remove the subgroups. Maybe it's a depends_on
thing?
I'm having the same issue as of now :/ cannot delete it.
I got the same error. The problem is now 5 years old. I just heard that it started going to school.
Same error here
Can someone share a config that failing ?
@nemethloci would you provide the failing plan output and configuration?
From your description, it sounds like you need a create_before_destroy
meta argument on your subnet group and/or subnet.
lifecycle {
create_before_destroy = true
}
we will need a way to reproduce this error to troubleshoot.
@nemethloci would you provide the failing plan output and configuration?
From your description, it sounds like you need a
create_before_destroy
meta argument on your subnet group and/or subnet.lifecycle { create_before_destroy = true }
we will need a way to reproduce this error to troubleshoot.
Hi everyone, I´m facing the same issue and try to add "create before destroy" argument and is not working. Does anyone have a glue about how to solve this issue?
The issue is opened since 2017. Is kind of weird nobody is worring about..
@hashibot i´m waiting for an answer.... Can anyone from Hashicorp interact with us?
@pierremartinsbr are you able to provide the configuration that you are using to reproduce the issue?
Without an example to reproduce, it is hard to know the issue you are running into. I would love to take a look at resolving this issue if I had a way to reproduce it.
Any luck resolving this ?
Hi @brittandeyoung you can find an example code at https://github.com/hashicorp/terraform/issues/5901. My code is the same as you have in this link mentioned by @bitemyapp.
Hi @brittandeyoung you can find an example code at hashicorp/terraform#5901. My code is the same as you have in this link mentioned by @bitemyapp.
@pierremartinsbr Is this the example you are referring to? https://github.com/hashicorp/terraform/issues/5901#issuecomment-204060759
And is the issue that you are unable to run a terraform destroy? or what is the issue you are running into? Posting your error would be very helpful as this linked issue is about RDS subnet groups, but the current issue is about security groups.
Please provide as much information as you can in order for me to be able to investigate.
Getting this issue. Only seems to happen to me when updating the database subnet groups. Had to remove the DB from the terraform plan to avoid the circular dependency, very annoying.
This issue was originally opened by @thegranddesign as hashicorp/terraform#5902. It was migrated here as part of the provider split. The original body of the issue is below.