@@ -311,12 +311,12 @@ Parameters:
311
311
Default : " "
312
312
313
313
InstanceTypes :
314
- Description : Comma-separated list with 1-10 instance types. The order is a prioritized preference for launching OnDemand instances, and a non-prioritized list of types to consider for Spot Instances (where used).
314
+ Description : Comma-separated list with 1-25 instance types. The order is a prioritized preference for launching OnDemand instances, and a non-prioritized list of types to consider for Spot Instances (where used).
315
315
Type : String
316
316
Default : t3.large
317
317
MinLength : 1
318
- AllowedPattern : " ^[\\ w-\\ .]+(,[\\ w-\\ .]*){0,9 }$"
319
- ConstraintDescription : " must contain 1-10 instance types separated by commas. No space before/after the comma."
318
+ AllowedPattern : " ^[\\ w-\\ .]+(,[\\ w-\\ .]*){0,24 }$"
319
+ ConstraintDescription : " must contain 1-25 instance types separated by commas. No space before/after the comma."
320
320
321
321
MaxSize :
322
322
Description : Maximum number of instances
@@ -721,31 +721,76 @@ Conditions:
721
721
!Equals [ !Ref RootVolumeName, "" ]
722
722
723
723
UseInstanceType2 :
724
- !Not [ !Equals [ !Select [ "1", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
724
+ !Not [ !Equals [ !Select [ "1", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
725
725
726
726
UseInstanceType3 :
727
- !Not [ !Equals [ !Select [ "2", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
727
+ !Not [ !Equals [ !Select [ "2", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
728
728
729
729
UseInstanceType4 :
730
- !Not [ !Equals [ !Select [ "3", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
730
+ !Not [ !Equals [ !Select [ "3", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
731
731
732
732
UseInstanceType5 :
733
- !Not [ !Equals [ !Select [ "4", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
733
+ !Not [ !Equals [ !Select [ "4", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
734
734
735
735
UseInstanceType6 :
736
- !Not [ !Equals [ !Select [ "5", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
736
+ !Not [ !Equals [ !Select [ "5", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
737
737
738
738
UseInstanceType7 :
739
- !Not [ !Equals [ !Select [ "6", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
739
+ !Not [ !Equals [ !Select [ "6", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
740
740
741
741
UseInstanceType8 :
742
- !Not [ !Equals [ !Select [ "7", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
742
+ !Not [ !Equals [ !Select [ "7", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
743
743
744
744
UseInstanceType9 :
745
- !Not [ !Equals [ !Select [ "8", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
745
+ !Not [ !Equals [ !Select [ "8", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
746
746
747
747
UseInstanceType10 :
748
- !Not [ !Equals [ !Select [ "9", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ], ""] ]
748
+ !Not [ !Equals [ !Select [ "9", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
749
+
750
+ UseInstanceType11 :
751
+ !Not [ !Equals [ !Select [ "10", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
752
+
753
+ UseInstanceType12 :
754
+ !Not [ !Equals [ !Select [ "11", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
755
+
756
+ UseInstanceType13 :
757
+ !Not [ !Equals [ !Select [ "12", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
758
+
759
+ UseInstanceType14 :
760
+ !Not [ !Equals [ !Select [ "13", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
761
+
762
+ UseInstanceType15 :
763
+ !Not [ !Equals [ !Select [ "14", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
764
+
765
+ UseInstanceType16 :
766
+ !Not [ !Equals [ !Select [ "15", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
767
+
768
+ UseInstanceType17 :
769
+ !Not [ !Equals [ !Select [ "16", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
770
+
771
+ UseInstanceType18 :
772
+ !Not [ !Equals [ !Select [ "17", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
773
+
774
+ UseInstanceType19 :
775
+ !Not [ !Equals [ !Select [ "18", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
776
+
777
+ UseInstanceType20 :
778
+ !Not [ !Equals [ !Select [ "19", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
779
+
780
+ UseInstanceType21 :
781
+ !Not [ !Equals [ !Select [ "20", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
782
+
783
+ UseInstanceType22 :
784
+ !Not [ !Equals [ !Select [ "21", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
785
+
786
+ UseInstanceType23 :
787
+ !Not [ !Equals [ !Select [ "22", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
788
+
789
+ UseInstanceType24 :
790
+ !Not [ !Equals [ !Select [ "23", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
791
+
792
+ UseInstanceType25 :
793
+ !Not [ !Equals [ !Select [ "24", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ] ] ], ""] ]
749
794
750
795
UseManagedPolicyARN :
751
796
!Not [ !Equals [ !Join [ "", !Ref ManagedPolicyARNs ], "" ] ]
@@ -1279,7 +1324,7 @@ Resources:
1279
1324
KeyName : !If [ "HasKeyName", !Ref KeyName, !Ref 'AWS::NoValue' ]
1280
1325
IamInstanceProfile :
1281
1326
Arn : !GetAtt "IAMInstanceProfile.Arn"
1282
- InstanceType : !Select [ "0", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", ""] ] ] ]
1327
+ InstanceType : !Select [ "0", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1283
1328
MetadataOptions :
1284
1329
HttpTokens : !Ref IMDSv2Tokens
1285
1330
# Allow containers using a Docker network on the host to receive IDMSv2 responses
@@ -1496,42 +1541,102 @@ Resources:
1496
1541
LaunchTemplateId : !Ref AgentLaunchTemplate
1497
1542
Version : !GetAtt "AgentLaunchTemplate.LatestVersionNumber"
1498
1543
Overrides :
1499
- - InstanceType : !Select [ "0", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1544
+ - InstanceType : !Select [ "0", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1500
1545
- !If
1501
1546
- UseInstanceType2
1502
- - InstanceType : !Select [ "1", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1547
+ - InstanceType : !Select [ "1", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1503
1548
- !Ref " AWS::NoValue"
1504
1549
- !If
1505
1550
- UseInstanceType3
1506
- - InstanceType : !Select [ "2", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1551
+ - InstanceType : !Select [ "2", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1507
1552
- !Ref " AWS::NoValue"
1508
1553
- !If
1509
1554
- UseInstanceType4
1510
- - InstanceType : !Select [ "3", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1555
+ - InstanceType : !Select [ "3", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1511
1556
- !Ref " AWS::NoValue"
1512
1557
- !If
1513
1558
- UseInstanceType5
1514
- - InstanceType : !Select [ "4", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1559
+ - InstanceType : !Select [ "4", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1515
1560
- !Ref " AWS::NoValue"
1516
1561
- !If
1517
1562
- UseInstanceType6
1518
- - InstanceType : !Select [ "5", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1563
+ - InstanceType : !Select [ "5", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1519
1564
- !Ref " AWS::NoValue"
1520
1565
- !If
1521
1566
- UseInstanceType7
1522
- - InstanceType : !Select [ "6", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1567
+ - InstanceType : !Select [ "6", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1523
1568
- !Ref " AWS::NoValue"
1524
1569
- !If
1525
1570
- UseInstanceType8
1526
- - InstanceType : !Select [ "7", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1571
+ - InstanceType : !Select [ "7", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1527
1572
- !Ref " AWS::NoValue"
1528
1573
- !If
1529
1574
- UseInstanceType9
1530
- - InstanceType : !Select [ "8", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1575
+ - InstanceType : !Select [ "8", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1531
1576
- !Ref " AWS::NoValue"
1532
1577
- !If
1533
1578
- UseInstanceType10
1534
- - InstanceType : !Select [ "9", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "" ] ] ] ]
1579
+ - InstanceType : !Select [ "9", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1580
+ - !Ref " AWS::NoValue"
1581
+ - !If
1582
+ - UseInstanceType11
1583
+ - InstanceType : !Select [ "10", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1584
+ - !Ref " AWS::NoValue"
1585
+ - !If
1586
+ - UseInstanceType12
1587
+ - InstanceType : !Select [ "11", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1588
+ - !Ref " AWS::NoValue"
1589
+ - !If
1590
+ - UseInstanceType13
1591
+ - InstanceType : !Select [ "12", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1592
+ - !Ref " AWS::NoValue"
1593
+ - !If
1594
+ - UseInstanceType14
1595
+ - InstanceType : !Select [ "13", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1596
+ - !Ref " AWS::NoValue"
1597
+ - !If
1598
+ - UseInstanceType15
1599
+ - InstanceType : !Select [ "14", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1600
+ - !Ref " AWS::NoValue"
1601
+ - !If
1602
+ - UseInstanceType16
1603
+ - InstanceType : !Select [ "15", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1604
+ - !Ref " AWS::NoValue"
1605
+ - !If
1606
+ - UseInstanceType17
1607
+ - InstanceType : !Select [ "16", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1608
+ - !Ref " AWS::NoValue"
1609
+ - !If
1610
+ - UseInstanceType18
1611
+ - InstanceType : !Select [ "17", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1612
+ - !Ref " AWS::NoValue"
1613
+ - !If
1614
+ - UseInstanceType19
1615
+ - InstanceType : !Select [ "18", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1616
+ - !Ref " AWS::NoValue"
1617
+ - !If
1618
+ - UseInstanceType20
1619
+ - InstanceType : !Select [ "19", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1620
+ - !Ref " AWS::NoValue"
1621
+ - !If
1622
+ - UseInstanceType21
1623
+ - InstanceType : !Select [ "20", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1624
+ - !Ref " AWS::NoValue"
1625
+ - !If
1626
+ - UseInstanceType22
1627
+ - InstanceType : !Select [ "21", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1628
+ - !Ref " AWS::NoValue"
1629
+ - !If
1630
+ - UseInstanceType23
1631
+ - InstanceType : !Select [ "22", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1632
+ - !Ref " AWS::NoValue"
1633
+ - !If
1634
+ - UseInstanceType24
1635
+ - InstanceType : !Select [ "23", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1636
+ - !Ref " AWS::NoValue"
1637
+ - !If
1638
+ - UseInstanceType25
1639
+ - InstanceType : !Select [ "24", !Split [ ",", !Join [ ",", [ !Ref InstanceTypes, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ] ] ] ]
1535
1640
- !Ref " AWS::NoValue"
1536
1641
1537
1642
MinSize : !Ref MinSize
0 commit comments