Seems like your code going to recreate this sql-instance. But your current tfstate file contains an instance-code with
true value for
deletion_protection parameter. In this case, you need first of all change value of this parameter to
false manually in tfstate file or by adding
deletion_protection = true in the code with running
terraform apply command after that (beware: your code shouldn’t do a recreation of the instance). And after this manipulations, you can do anything with your SQL instance
CLICK HERE to find out more related problems solutions.