diff --git a/.changelog/47460.txt b/.changelog/47460.txt new file mode 100644 index 000000000000..4e24c083f1dd --- /dev/null +++ b/.changelog/47460.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_redshift_cluster: Prevent failures during creation when the cluster enters `Maintenance`. +``` diff --git a/internal/service/redshift/wait.go b/internal/service/redshift/wait.go index d186ec2a1b6d..fc110e5b269e 100644 --- a/internal/service/redshift/wait.go +++ b/internal/service/redshift/wait.go @@ -18,7 +18,7 @@ import ( func waitClusterCreated(ctx context.Context, conn *redshift.Client, id string, timeout time.Duration) (*awstypes.Cluster, error) { stateConf := &retry.StateChangeConf{ - Pending: []string{clusterAvailabilityStatusModifying, clusterAvailabilityStatusUnavailable}, + Pending: []string{clusterAvailabilityStatusMaintenance, clusterAvailabilityStatusModifying, clusterAvailabilityStatusUnavailable}, Target: []string{clusterAvailabilityStatusAvailable}, Refresh: statusClusterAvailability(conn, id), Timeout: timeout,