File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,11 @@ Parameters:
406
406
- " false"
407
407
Default : " false"
408
408
409
+ WarmPoolMinSize :
410
+ Type : Number
411
+ Description : Minimum number of instances in warm pool
412
+ Default : 0
413
+
409
414
Outputs :
410
415
VpcId :
411
416
Value :
@@ -534,6 +539,9 @@ Conditions:
534
539
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceType ] ], "r6g" ]
535
540
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceType ] ], "r6gd" ]
536
541
542
+ UseWarmPool :
543
+ !Not [ !Equals [ !Ref WarmPoolMinSize, 0 ] ]
544
+
537
545
Mappings :
538
546
ECRManagedPolicy :
539
547
none : { Policy: '' }
@@ -1026,6 +1034,14 @@ Resources:
1026
1034
AutoScalingReplacingUpdate :
1027
1035
WillReplace : true
1028
1036
1037
+ AsgWarmPool :
1038
+ Type : AWS::AutoScaling::WarmPool
1039
+ Condition : UseWarmPool
1040
+ Properties :
1041
+ AutoScalingGroupName : !Ref AgentAutoScaleGroup
1042
+ MinSize : !Ref WarmPoolMinSize
1043
+ PoolState : Stopped
1044
+
1029
1045
AsgProcessSuspenderRole :
1030
1046
Type : AWS::IAM::Role
1031
1047
Properties :
You can’t perform that action at this time.
0 commit comments