@@ -1809,8 +1809,8 @@ each(testedOpenSearchVersions).describe('custom error responses', (engineVersion
1809
1809
} ) ) . toThrow ( / N o d e - t o - n o d e e n c r y p t i o n r e q u i r e s E l a s t i c s e a r c h v e r s i o n 6 .0 o r l a t e r o r O p e n S e a r c h v e r s i o n 1 .0 o r l a t e r / ) ;
1810
1810
} ) ;
1811
1811
1812
- test ( 'error when i3 or r6g instance types are specified with EBS enabled' , ( ) => {
1813
- expect ( ( ) => new Domain ( stack , 'Domain1 ' , {
1812
+ test ( 'error when I3, R6GD, and IM4GN instance types are specified with EBS enabled' , ( ) => {
1813
+ expect ( ( ) => new Domain ( stack , 'Domain2 ' , {
1814
1814
version : engineVersion ,
1815
1815
capacity : {
1816
1816
dataNodeInstanceType : 'i3.2xlarge.search' ,
@@ -1819,8 +1819,8 @@ each(testedOpenSearchVersions).describe('custom error responses', (engineVersion
1819
1819
volumeSize : 100 ,
1820
1820
volumeType : EbsDeviceVolumeType . GENERAL_PURPOSE_SSD ,
1821
1821
} ,
1822
- } ) ) . toThrow ( / I 3 a n d R 6 G D i n s t a n c e t y p e s d o n o t s u p p o r t E B S s t o r a g e v o l u m e s / ) ;
1823
- expect ( ( ) => new Domain ( stack , 'Domain2 ' , {
1822
+ } ) ) . toThrow ( / I 3 , R 6 G D , a n d I M 4 G N i n s t a n c e t y p e s d o n o t s u p p o r t E B S s t o r a g e v o l u m e s . / ) ;
1823
+ expect ( ( ) => new Domain ( stack , 'Domain3 ' , {
1824
1824
version : engineVersion ,
1825
1825
capacity : {
1826
1826
dataNodeInstanceType : 'r6gd.large.search' ,
@@ -1829,7 +1829,17 @@ each(testedOpenSearchVersions).describe('custom error responses', (engineVersion
1829
1829
volumeSize : 100 ,
1830
1830
volumeType : EbsDeviceVolumeType . GENERAL_PURPOSE_SSD ,
1831
1831
} ,
1832
- } ) ) . toThrow ( / I 3 a n d R 6 G D i n s t a n c e t y p e s d o n o t s u p p o r t E B S s t o r a g e v o l u m e s / ) ;
1832
+ } ) ) . toThrow ( / I 3 , R 6 G D , a n d I M 4 G N i n s t a n c e t y p e s d o n o t s u p p o r t E B S s t o r a g e v o l u m e s ./ ) ;
1833
+ expect ( ( ) => new Domain ( stack , 'Domain4' , {
1834
+ version : engineVersion ,
1835
+ capacity : {
1836
+ dataNodeInstanceType : 'im4gn.2xlarge.search' ,
1837
+ } ,
1838
+ ebs : {
1839
+ volumeSize : 100 ,
1840
+ volumeType : EbsDeviceVolumeType . GENERAL_PURPOSE_SSD ,
1841
+ } ,
1842
+ } ) ) . toThrow ( / I 3 , R 6 G D , a n d I M 4 G N i n s t a n c e t y p e s d o n o t s u p p o r t E B S s t o r a g e v o l u m e s ./ ) ;
1833
1843
} ) ;
1834
1844
1835
1845
test ( 'error when m3, r3, or t2 instance types are specified with encryption at rest enabled' , ( ) => {
@@ -1872,7 +1882,7 @@ each(testedOpenSearchVersions).describe('custom error responses', (engineVersion
1872
1882
} ) ) . toThrow ( / t 2 .m i c r o .s e a r c h i n s t a n c e t y p e s u p p o r t s o n l y E l a s t i c s e a r c h v e r s i o n s 1 .5 a n d 2 .3 / ) ;
1873
1883
} ) ;
1874
1884
1875
- test ( 'error when any instance type other than R3, I3 and R6GD are specified without EBS enabled' , ( ) => {
1885
+ test ( 'error when any instance type other than R3, I3, R6GD, or IM4GN are specified without EBS enabled' , ( ) => {
1876
1886
expect ( ( ) => new Domain ( stack , 'Domain1' , {
1877
1887
version : engineVersion ,
1878
1888
ebs : {
@@ -1881,16 +1891,16 @@ each(testedOpenSearchVersions).describe('custom error responses', (engineVersion
1881
1891
capacity : {
1882
1892
masterNodeInstanceType : 'm5.large.search' ,
1883
1893
} ,
1884
- } ) ) . toThrow ( / E B S v o l u m e s a r e r e q u i r e d w h e n u s i n g i n s t a n c e t y p e s o t h e r t h a n r 3 , i 3 o r r 6 g d / ) ;
1894
+ } ) ) . toThrow ( / E B S v o l u m e s a r e r e q u i r e d w h e n u s i n g i n s t a n c e t y p e s o t h e r t h a n R 3 , I 3 , R 6 G D , o r I M 4 G N . / ) ;
1885
1895
expect ( ( ) => new Domain ( stack , 'Domain2' , {
1886
1896
version : engineVersion ,
1887
1897
ebs : {
1888
1898
enabled : false ,
1889
1899
} ,
1890
1900
capacity : {
1891
- dataNodeInstanceType : 'm5 .large.search' ,
1901
+ dataNodeInstanceType : 'r5 .large.search' ,
1892
1902
} ,
1893
- } ) ) . toThrow ( / E B S v o l u m e s a r e r e q u i r e d w h e n u s i n g i n s t a n c e t y p e s o t h e r t h a n r 3 , i 3 o r r 6 g d / ) ;
1903
+ } ) ) . toThrow ( / E B S v o l u m e s a r e r e q u i r e d w h e n u s i n g i n s t a n c e t y p e s o t h e r t h a n R 3 , I 3 , R 6 G D , o r I M 4 G N . / ) ;
1894
1904
} ) ;
1895
1905
1896
1906
test ( 'can use compatible master instance types that does not have local storage when data node type is i3 or r6gd' , ( ) => {
0 commit comments