cloud_runner
cloud_runner

Reputation: 61

Terraform not deleting rds autoscaled aurora instances

I am trying to create a rds aurora global database with autoscaling enabled based on CPU threshold but when I try to destroy the autoscaled instances that are not deleted by terraform is this a bug? Is there a workaround or am I missing something?

I used this module https://github.com/umotif-public/terraform-aws-rds-aurora/blob/master/main.tf

line 391 create auto-scaling of aurora rds

But the autoscaled instance state is not maintained by terraform and deleting the autoscale resource didn't work

Error message: Error: error deleting RDS Cluster InvalidDBClusterStateFault: Cluster cannot be deleted, it still contains DB instances in non-deleting state. status code: 400, request id: b62f33ee-57d8-4887-9cad-3cbf6229b4ac

Error: Error deleting DB parameter group: InvalidDBParameterGroupState: One or more database instances are still members of this parameter group my-parameter-group, so the group cannot be deleted status code: 400, request id: 8a501e66-39e5-4365-ba33-7667894b9cf6

Upvotes: 3

Views: 1410

Answers (1)

Giovanni Lopez
Giovanni Lopez

Reputation: 11

The only way I have done this is by manually deleting it before executing the command from terraform, but it does not make sense

Upvotes: 0

Related Questions