Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions templates/aws-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ Parameters:
- "false"
Default: "false"

WarmPoolMinSize:
Type: Number
Description: Minimum number of instances in warm pool
Default: 0

Outputs:
VpcId:
Value:
Expand Down Expand Up @@ -534,6 +539,9 @@ Conditions:
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceType ] ], "r6g" ]
- !Equals [ !Select [ 0, !Split [ ".", !Ref InstanceType ] ], "r6gd" ]

UseWarmPool:
!Not [ !Equals [ !Ref WarmPoolMinSize, 0 ] ]

Mappings:
ECRManagedPolicy:
none : { Policy: '' }
Expand Down Expand Up @@ -1026,6 +1034,14 @@ Resources:
AutoScalingReplacingUpdate:
WillReplace: true

AsgWarmPool:
Type: AWS::AutoScaling::WarmPool
Condition: UseWarmPool
Properties:
AutoScalingGroupName: !Ref AgentAutoScaleGroup
MinSize: !Ref WarmPoolMinSize
PoolState: Stopped

AsgProcessSuspenderRole:
Type: AWS::IAM::Role
Properties:
Expand Down