Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/aws_redshift_cluster: skip_final_snapshot updates state only (#36635)
Previously an update to `skip_final_snapshot` would trigger a call to the ModifyCluster API, which fails if no other arguments are modified. Before: ``` Terraform will perform the following actions: # aws_redshift_cluster.example will be updated in-place ~ resource "aws_redshift_cluster" "example" { id = "tf-redshift-cluster" ~ skip_final_snapshot = false -> true tags = {} # (38 unchanged attributes hidden) # (1 unchanged block hidden) } Plan: 0 to add, 1 to change, 0 to destroy. aws_redshift_cluster.example: Modifying... [id=tf-redshift-cluster] ╷ │ Error: modifying Redshift Cluster (tf-redshift-cluster): InvalidParameterCombination: No modifications were requested │ status code: 400, request id: 0b087c95-ac6b-4ad6-8eed-ded497fb4a2e │ │ with aws_redshift_cluster.example, │ on main.tf line 13, in resource "aws_redshift_cluster" "example": │ 13: resource "aws_redshift_cluster" "example" { │ ╵ ``` After: ``` Terraform will perform the following actions: # aws_redshift_cluster.example will be updated in-place ~ resource "aws_redshift_cluster" "example" { id = "tf-redshift-cluster" ~ skip_final_snapshot = false -> true tags = {} # (38 unchanged attributes hidden) # (1 unchanged block hidden) } Plan: 0 to add, 1 to change, 0 to destroy. aws_redshift_cluster.example: Modifying... [id=tf-redshift-cluster] aws_redshift_cluster.example: Modifications complete after 1s [id=tf-redshift-cluster] Apply complete! Resources: 0 added, 1 changed, 0 destroyed. ```
- Loading branch information