[Enhancement]: Validations for final_snapshot properties on aws_redshift_cluster resource #39910
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/redshift
Issues and PRs that pertain to the redshift service.
Terraform Core Version
v1.3.9
AWS Provider Version
5.73.0
Affected Resource(s)
Expected Behavior
I think the easiest solution would be to make the
skip_final_snapshot
or thefinal_snapshot_identifier
property necessary. If thenskip_final_snapshot != true or final_snapshot_identifier != null
the terraform plan or apply should break the process with a message that those properties are necessary.Actual Behavior
Creation of this resource is ok:
But when trying to delete it, the following error appears:
Error: Redshift Cluster Instance FinalSnapshotIdentifier is required when a final snapshot is required
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Please not not forget to set the variables
Steps to Reproduce
Debug Output
No response
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: