fix(redshift): emit ClusterAvailabilityStatus and AvailabilityZoneRelocationStatus (#3109)

DescribeClusters (and every other cluster response, since they share
buildClusterXml) omitted two fields the Terraform AWS provider requires:
ClusterAvailabilityStatus and AvailabilityZoneRelocationStatus. The
create waiter polled an empty ClusterAvailabilityStatus ("unexpected
state '', wanted target 'Available'") and import/read rejected the empty
AvailabilityZoneRelocationStatus.

ClusterAvailabilityStatus is derived from clusterStatus: available maps
to Available, unavailable to Unavailable, failed to Failed, and every
transient state to Modifying. Floci has no availability-zone relocation
feature, so AvailabilityZoneRelocationStatus is the constant "disabled".

Closes #3098
This commit is contained in:
Vũ Thế Huy authored and GitHub committed 2026-09-05 22:27:00 -04:00
1 parent 67bbd2cf13
commit 025ac714f6
4 files changed
+70 -2

No files matched your search

@@ -44,6 +44,9 @@ public class RedshiftTest {
Cluster cluster = describeRes.clusters().get(0);
assertEquals("test-cluster", cluster.clusterIdentifier());
// Terraform's AWS provider polls these two on create and validates them on read (issue #3098).
assertEquals("Available", cluster.clusterAvailabilityStatus());
assertEquals("disabled", cluster.availabilityZoneRelocationStatus());
assertNotNull(cluster.endpoint());
String address = cluster.endpoint().address();
int port = cluster.endpoint().port();