@@ -318,9 +318,9 @@ func TestNormalizeEngineVersion(t *testing.T) {
318
318
}
319
319
320
320
const (
321
- testAccBrokerVersionNewer = "5.17.6" // before changing, check b/c must be valid on GovCloud
322
- testAccBrokerVersionOlder = "5.16.7" // before changing, check b/c must be valid on GovCloud
323
- testAccRabbitVersion = "3.11.20" // before changing, check b/c must be valid on GovCloud
321
+ testAccBrokerVersionNewer = "5.17.6" // before changing, check b/c must be valid on GovCloud
322
+ // testAccBrokerVersionOlder = "5.16.7" // before changing, check b/c must be valid on GovCloud
323
+ testAccRabbitVersion = "3.11.20" // before changing, check b/c must be valid on GovCloud
324
324
325
325
testAccActiveVersionNormalized5_18 = "5.18"
326
326
testAccRabbitVersionNormalized3_13 = "3.13"
@@ -362,7 +362,7 @@ func TestAccMQBroker_basic(t *testing.T) {
362
362
resource .TestCheckResourceAttr (resourceName , "encryption_options.0.use_aws_owned_key" , acctest .CtTrue ),
363
363
resource .TestCheckResourceAttr (resourceName , "engine_type" , "ActiveMQ" ),
364
364
resource .TestCheckResourceAttr (resourceName , names .AttrEngineVersion , testAccBrokerVersionNewer ),
365
- resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t2 .micro" ),
365
+ resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t3 .micro" ),
366
366
resource .TestCheckResourceAttr (resourceName , "instances.#" , "1" ),
367
367
resource .TestMatchResourceAttr (resourceName , "instances.0.console_url" ,
368
368
regexache .MustCompile (`^https://[0-9a-f-]+\.mq.[0-9a-z-]+.amazonaws.com:8162$` )),
@@ -651,7 +651,7 @@ func TestAccMQBroker_AllFields_defaultVPC(t *testing.T) {
651
651
resource .TestCheckResourceAttr (resourceName , "engine_type" , "ActiveMQ" ),
652
652
resource .TestCheckResourceAttr (resourceName , names .AttrEngineVersion , testAccBrokerVersionNewer ),
653
653
resource .TestCheckResourceAttr (resourceName , names .AttrStorageType , "efs" ),
654
- resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t2 .micro" ),
654
+ resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t3 .micro" ),
655
655
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.#" , "1" ),
656
656
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.0.day_of_week" , "TUESDAY" ),
657
657
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.0.time_of_day" , "02:00" ),
@@ -780,7 +780,7 @@ func TestAccMQBroker_AllFields_customVPC(t *testing.T) {
780
780
resource .TestCheckResourceAttr (resourceName , "engine_type" , "ActiveMQ" ),
781
781
resource .TestCheckResourceAttr (resourceName , names .AttrEngineVersion , testAccBrokerVersionNewer ),
782
782
resource .TestCheckResourceAttr (resourceName , names .AttrStorageType , "efs" ),
783
- resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t2 .micro" ),
783
+ resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t3 .micro" ),
784
784
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.#" , "1" ),
785
785
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.0.day_of_week" , "TUESDAY" ),
786
786
resource .TestCheckResourceAttr (resourceName , "maintenance_window_start_time.0.time_of_day" , "02:00" ),
@@ -1119,6 +1119,7 @@ func TestAccMQBroker_Update_securityGroup(t *testing.T) {
1119
1119
})
1120
1120
}
1121
1121
1122
+ /*
1122
1123
func TestAccMQBroker_Update_engineVersion(t *testing.T) {
1123
1124
ctx := acctest.Context(t)
1124
1125
if testing.Short() {
@@ -1162,6 +1163,7 @@ func TestAccMQBroker_Update_engineVersion(t *testing.T) {
1162
1163
},
1163
1164
})
1164
1165
}
1166
+ */
1165
1167
1166
1168
func TestAccMQBroker_Update_hostInstanceType (t * testing.T ) {
1167
1169
ctx := acctest .Context (t )
@@ -1184,10 +1186,10 @@ func TestAccMQBroker_Update_hostInstanceType(t *testing.T) {
1184
1186
CheckDestroy : testAccCheckBrokerDestroy (ctx ),
1185
1187
Steps : []resource.TestStep {
1186
1188
{
1187
- Config : testAccBrokerConfig_instanceType (rName , testAccBrokerVersionNewer , "mq.t2 .micro" ),
1189
+ Config : testAccBrokerConfig_instanceType (rName , testAccBrokerVersionNewer , "mq.t3 .micro" ),
1188
1190
Check : resource .ComposeTestCheckFunc (
1189
1191
testAccCheckBrokerExists (ctx , resourceName , & broker1 ),
1190
- resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t2 .micro" ),
1192
+ resource .TestCheckResourceAttr (resourceName , "host_instance_type" , "mq.t3 .micro" ),
1191
1193
),
1192
1194
},
1193
1195
{
@@ -1796,7 +1798,7 @@ resource "aws_mq_broker" "test" {
1796
1798
broker_name = %[1]q
1797
1799
engine_type = "ActiveMQ"
1798
1800
engine_version = %[2]q
1799
- host_instance_type = "mq.t2 .micro"
1801
+ host_instance_type = "mq.t3 .micro"
1800
1802
security_groups = [aws_security_group.test.id]
1801
1803
authentication_strategy = "simple"
1802
1804
storage_type = "efs"
@@ -1827,7 +1829,7 @@ resource "aws_mq_broker" "test" {
1827
1829
broker_name = %[1]q
1828
1830
engine_type = "ActiveMQ"
1829
1831
engine_version = %[2]q
1830
- host_instance_type = "mq.t2 .micro"
1832
+ host_instance_type = "mq.t3 .micro"
1831
1833
security_groups = [aws_security_group.test.id]
1832
1834
authentication_strategy = "simple"
1833
1835
storage_type = "efs"
@@ -1875,6 +1877,7 @@ resource "aws_mq_broker" "test" {
1875
1877
` , rName , version )
1876
1878
}
1877
1879
1880
+ /*
1878
1881
func testAccBrokerConfig_engineVersionUpdate(rName, version string) string {
1879
1882
return fmt.Sprintf(`
1880
1883
resource "aws_security_group" "test" {
@@ -1890,7 +1893,7 @@ resource "aws_mq_broker" "test" {
1890
1893
apply_immediately = true
1891
1894
engine_type = "ActiveMQ"
1892
1895
engine_version = %[2]q
1893
- host_instance_type = "mq.t2 .micro"
1896
+ host_instance_type = "mq.t3 .micro"
1894
1897
security_groups = [aws_security_group.test.id]
1895
1898
1896
1899
logs {
@@ -1904,6 +1907,7 @@ resource "aws_mq_broker" "test" {
1904
1907
}
1905
1908
`, rName, version)
1906
1909
}
1910
+ */
1907
1911
1908
1912
func testAccBrokerConfig_allFieldsDefaultVPC (rName , version , cfgName , cfgBody string ) string {
1909
1913
return fmt .Sprintf (`
@@ -1941,7 +1945,7 @@ resource "aws_mq_broker" "test" {
1941
1945
engine_type = "ActiveMQ"
1942
1946
engine_version = %[2]q
1943
1947
storage_type = "efs"
1944
- host_instance_type = "mq.t2 .micro"
1948
+ host_instance_type = "mq.t3 .micro"
1945
1949
1946
1950
maintenance_window_start_time {
1947
1951
day_of_week = "TUESDAY"
@@ -2036,7 +2040,7 @@ resource "aws_mq_broker" "test" {
2036
2040
engine_type = "ActiveMQ"
2037
2041
engine_version = %[2]q
2038
2042
storage_type = "efs"
2039
- host_instance_type = "mq.t2 .micro"
2043
+ host_instance_type = "mq.t3 .micro"
2040
2044
2041
2045
logs {
2042
2046
general = true
@@ -2089,7 +2093,7 @@ resource "aws_mq_broker" "test" {
2089
2093
broker_name = %[1]q
2090
2094
engine_type = "ActiveMQ"
2091
2095
engine_version = %[2]q
2092
- host_instance_type = "mq.t2 .micro"
2096
+ host_instance_type = "mq.t3 .micro"
2093
2097
security_groups = [aws_security_group.test.id]
2094
2098
2095
2099
encryption_options {
@@ -2123,7 +2127,7 @@ resource "aws_mq_broker" "test" {
2123
2127
broker_name = %[1]q
2124
2128
engine_type = "ActiveMQ"
2125
2129
engine_version = %[2]q
2126
- host_instance_type = "mq.t2 .micro"
2130
+ host_instance_type = "mq.t3 .micro"
2127
2131
security_groups = [aws_security_group.test.id]
2128
2132
2129
2133
encryption_options {
@@ -2157,7 +2161,7 @@ resource "aws_mq_broker" "test" {
2157
2161
broker_name = %[1]q
2158
2162
engine_type = "ActiveMQ"
2159
2163
engine_version = %[2]q
2160
- host_instance_type = "mq.t2 .micro"
2164
+ host_instance_type = "mq.t3 .micro"
2161
2165
security_groups = [aws_security_group.test.id]
2162
2166
2163
2167
user {
@@ -2183,7 +2187,7 @@ resource "aws_mq_broker" "test" {
2183
2187
broker_name = %[1]q
2184
2188
engine_type = "ActiveMQ"
2185
2189
engine_version = %[2]q
2186
- host_instance_type = "mq.t2 .micro"
2190
+ host_instance_type = "mq.t3 .micro"
2187
2191
security_groups = [aws_security_group.test.id]
2188
2192
2189
2193
user {
@@ -2215,7 +2219,7 @@ resource "aws_mq_broker" "test" {
2215
2219
broker_name = %[1]q
2216
2220
engine_type = "ActiveMQ"
2217
2221
engine_version = %[2]q
2218
- host_instance_type = "mq.t2 .micro"
2222
+ host_instance_type = "mq.t3 .micro"
2219
2223
security_groups = [aws_security_group.test.id]
2220
2224
2221
2225
user {
@@ -2242,7 +2246,7 @@ resource "aws_mq_broker" "test" {
2242
2246
broker_name = %[1]q
2243
2247
engine_type = "ActiveMQ"
2244
2248
engine_version = %[2]q
2245
- host_instance_type = "mq.t2 .micro"
2249
+ host_instance_type = "mq.t3 .micro"
2246
2250
security_groups = [aws_security_group.test.id]
2247
2251
2248
2252
user {
@@ -2272,7 +2276,7 @@ resource "aws_mq_broker" "test" {
2272
2276
broker_name = %[1]q
2273
2277
engine_type = "ActiveMQ"
2274
2278
engine_version = %[2]q
2275
- host_instance_type = "mq.t2 .micro"
2279
+ host_instance_type = "mq.t3 .micro"
2276
2280
security_groups = [aws_security_group.test.id]
2277
2281
2278
2282
user {
@@ -2311,7 +2315,7 @@ resource "aws_mq_broker" "test" {
2311
2315
broker_name = %[1]q
2312
2316
engine_type = "ActiveMQ"
2313
2317
engine_version = %[2]q
2314
- host_instance_type = "mq.t2 .micro"
2318
+ host_instance_type = "mq.t3 .micro"
2315
2319
security_groups = [aws_security_group.test.id, aws_security_group.test2.id]
2316
2320
2317
2321
logs {
@@ -2349,7 +2353,7 @@ resource "aws_mq_broker" "test" {
2349
2353
broker_name = %[1]q
2350
2354
engine_type = "ActiveMQ"
2351
2355
engine_version = %[2]q
2352
- host_instance_type = "mq.t2 .micro"
2356
+ host_instance_type = "mq.t3 .micro"
2353
2357
security_groups = [aws_security_group.test2.id]
2354
2358
2355
2359
logs {
@@ -2571,7 +2575,7 @@ resource "aws_mq_broker" "test" {
2571
2575
broker_name = %[1]q
2572
2576
engine_type = "ActiveMQ"
2573
2577
engine_version = %[2]q
2574
- host_instance_type = "mq.t2 .micro"
2578
+ host_instance_type = "mq.t3 .micro"
2575
2579
security_groups = [aws_security_group.test.id]
2576
2580
2577
2581
logs {
0 commit comments