You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When skip_final_snapshot = false, running terraform destroy fails to delete the RDS option group.
Expected Behavior
Terraform destroy should not fail. If skip_final_snapshot = false, then this module should not attempt to destroy aws_db_option_group.default.
Steps to Reproduce
Configure the basic example confirming that parameter skip_final_snapshot = false.
terraform apply
terraform destroy
See error
Screenshots
If applicable, add screenshots or logs to help explain your problem.
$ terraform destroy
[snip]
module.database.aws_db_option_group.default[0]: Still destroying... [id=rds-default, 14m31s elapsed]
module.database.aws_db_option_group.default[0]: Still destroying... [id=rds-default, 14m41s elapsed]
module.database.aws_db_option_group.default[0]: Still destroying... [id=rds-default, 14m51s elapsed]
Error: Error Deleting DB Option Group: InvalidOptionGroupStateFault: The option group 'rds-default' cannot be deleted because it is in use.
status code: 400, request id: 9f1a4a8a-5e45-4add-aaa6-df3612e44b4e
Releasing state lock. This may take a few moments...
Environment (please complete the following information):
Terraform: v0.12.29
provider.aws v2.70.0
Additional Context
RDS will not delete the DB option group because the final snapshot references it. If the final snapshot is deleted, the DB option group can be removed. This is not a Terraform problem, but how RDS works.
The text was updated successfully, but these errors were encountered:
Describe the Bug
When
skip_final_snapshot = false
, runningterraform destroy
fails to delete the RDS option group.Expected Behavior
Terraform destroy should not fail. If
skip_final_snapshot = false
, then this module should not attempt to destroyaws_db_option_group.default
.Steps to Reproduce
skip_final_snapshot = false
.terraform apply
terraform destroy
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Additional Context
RDS will not delete the DB option group because the final snapshot references it. If the final snapshot is deleted, the DB option group can be removed. This is not a Terraform problem, but how RDS works.
The text was updated successfully, but these errors were encountered: