Skip to content

Commit a6a9f50

Browse files
committed
fix timeout value
1 parent b657db4 commit a6a9f50

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

internal/service/kafka/cluster_test.go

+20-1
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,10 @@ resource "aws_msk_cluster" "test" {
20382038
}
20392039
enhanced_monitoring = %[2]q
20402040
}
2041+
2042+
timeouts {
2043+
create = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be created
2044+
}
20412045
}
20422046
`, rName, enhancedMonitoring))
20432047

@@ -2059,6 +2063,11 @@ resource "aws_msk_cluster" "test" {
20592063
security_groups = [aws_security_group.example_sg.id]
20602064
}
20612065
}
2066+
2067+
timeouts {
2068+
create = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be created
2069+
update = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be update
2070+
}
20622071
}
20632072
`, rName, brokerCount))
20642073

@@ -2199,6 +2208,11 @@ resource "aws_msk_cluster" "test" {
21992208
}
22002209
}
22012210
}
2211+
2212+
timeouts {
2213+
create = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be created
2214+
update = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be update
2215+
}
22022216
}
22032217
`, rName, cloudwatchLogsEnabled, cloudwatchLogsLogGroup, firehoseEnabled, firehoseDeliveryStream, s3Enabled, s3Bucket))
22042218
}
@@ -2227,7 +2241,7 @@ resource "aws_msk_cluster" "test" {
22272241
}
22282242
22292243
timeouts {
2230-
create = "4h" # As of Jul 2022 MSK clusters can take 4h or more to be created
2244+
create = "4h" # As of Jul 2022 MSK clusters can take 3h or more to be created
22312245
update = "4h" # As of Jul 2022 MSK clusters can take 3h or more to be update
22322246
delete = "4h" # As of Jul 2022 MSK clusters can take 3h or more to be delete
22332247
}
@@ -2279,6 +2293,11 @@ resource "aws_msk_cluster" "test" {
22792293
revision = aws_msk_configuration.%[3]s.latest_revision
22802294
}
22812295
}
2296+
2297+
timeouts {
2298+
create = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be created
2299+
update = "3h" # As of Jul 2022 MSK clusters can take 2h or more to be update
2300+
}
22822301
}
22832302
`, rName, kafkaVersion, configResourceName))
22842303
}

0 commit comments

Comments
 (0)