square-dress-80180
06/03/2021, 11:04 PMpulumi destroy
an rds instance and related subnet group ran into a problem where it seemed like pulumi thought it had stopped the rds instance, but actually hadn’t. So was receiving an error like this:
InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'cookie-db-sng-9fd6b64' because at least one database instance: cookie-db-rds05a1a02 is still using it.
So, stopped and deleted the rds instance manually since it was no longer “in” pulumi state from what I could tell. Tried to pulumi refresh
and pulumi destroy
again but no luck. I have been able to use pulumi destroy
to successfully delete the infra resources - internet gateway, subnets, vpc. But still the subnet group insists there is an rds instance still up and it is in use.
Any ideas on how to proceed?pulumi state delete
the resource urn for the subnet group that comes directly with the error message above, I get the following: no such resource exists in current state
little-cartoon-10569
06/03/2021, 11:31 PMsquare-dress-80180
06/07/2021, 4:29 PMstate
or aws state
that is the referenced state in InvalidDBSubnetGroupStateFault
.pulumi destroy
cmd worked fine.little-cartoon-10569
06/07/2021, 8:56 PMsquare-dress-80180
06/22/2021, 3:39 PM