[Bug]: DocumentDB Cluster FinalSnapshotIdentifier is required when a final snapshot is required #37582
Labels
bug
Addresses a defect in current functionality.
service/docdb
Issues and PRs that pertain to the docdb service.
Terraform Core Version
1.6.5, 1.7.5, 1.8.3
AWS Provider Version
5.49.0
Affected Resource(s)
Expected Behavior
skip_final_snapshot = true
, Terraform will destroy the specified docdb cluster without attempting to take a final snapshotfinal_snapshot_identifier
is specified, Terraform will create the snapshot, and then destroy the specified docdb clusterActual Behavior
skip_final_snapshot = true
, AND/ORfinal_snapshot_identifier
is specified, the following error is displayed after runningterraform apply
:Relevant Error/Panic Output Snippet
aws_docdb_cluster.this: Destroying... [id=docdb-cluster-dev] │ Error: DocumentDB Cluster FinalSnapshotIdentifier is required when a final snapshot is required
Terraform Configuration Files
Steps to Reproduce
Provision a docdb cluster, with 1 instance, and then change an argument that will cause Terraform to need to destroy and replace the docdb cluster.
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: