@@ -81,6 +81,7 @@ Metadata:
81
81
- ImageIdParameter
82
82
- InstanceOperatingSystem
83
83
- InstanceTypes
84
+ - CpuCredits
84
85
- EnableInstanceStorage
85
86
- MountTmpfsAtTmp
86
87
- AgentsPerInstance
@@ -496,6 +497,14 @@ Parameters:
496
497
AllowedPattern : " ^[\\ w-\\ .]+(,[\\ w-\\ .]*){0,24}$"
497
498
ConstraintDescription : " must contain 1-25 instance types separated by commas. No space before/after the comma."
498
499
500
+ CpuCredits :
501
+ Description : Credit option for CPU usage of the instance.
502
+ Type : String
503
+ AllowedValues :
504
+ - standard
505
+ - unlimited
506
+ Default : " unlimited"
507
+
499
508
MaxSize :
500
509
Description : Maximum number of instances
501
510
Type : Number
@@ -1118,6 +1127,13 @@ Conditions:
1118
1127
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "t4g" ]
1119
1128
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "x2gd" ]
1120
1129
1130
+ UsingBurstableInstances :
1131
+ !Or
1132
+ - !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "t2" ]
1133
+ - !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "t3" ]
1134
+ - !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "t3a" ]
1135
+ - !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceTypes ] ], "t4g" ]
1136
+
1121
1137
UseStackNameForInstanceName :
1122
1138
!Equals [ !Ref InstanceName, "" ]
1123
1139
@@ -1651,6 +1667,10 @@ Resources:
1651
1667
Encrypted : !Ref RootVolumeEncrypted
1652
1668
Throughput : !If [ IsRootVolumeIsGp3, !Ref RootVolumeThroughput, !Ref "AWS::NoValue" ]
1653
1669
Iops : !If [ IsRootVolumeIsIo1OrIo2OrGp3, !Ref RootVolumeIops, !Ref "AWS::NoValue" ]
1670
+ CreditSpecification : !If
1671
+ - UsingBurstableInstances
1672
+ - CpuCredits : !Ref CpuCredits
1673
+ - !Ref " AWS::NoValue"
1654
1674
TagSpecifications :
1655
1675
- ResourceType : instance
1656
1676
Tags :
0 commit comments