You've already forked microservices
mirror of
https://github.com/ebosas/microservices.git
synced 2025-08-24 20:08:55 +02:00
Update autoscaling group update policy
This commit is contained in:
@@ -36,6 +36,7 @@ Resources:
|
||||
#-----------------------------------------------------------------------------#
|
||||
ECSAutoScalingGroup:
|
||||
Type: AWS::AutoScaling::AutoScalingGroup
|
||||
DependsOn: ECSCluster
|
||||
Condition: EC2
|
||||
Properties:
|
||||
NewInstancesProtectedFromScaleIn: true
|
||||
@@ -49,10 +50,20 @@ Resources:
|
||||
DesiredCapacity: 1
|
||||
CreationPolicy:
|
||||
ResourceSignal:
|
||||
Timeout: PT15M
|
||||
Timeout: PT5M
|
||||
UpdatePolicy:
|
||||
AutoScalingReplacingUpdate:
|
||||
WillReplace: true
|
||||
AutoScalingRollingUpdate:
|
||||
MinSuccessfulInstancesPercent: 100
|
||||
WaitOnResourceSignals: true
|
||||
PauseTime: PT5M
|
||||
SuspendProcesses:
|
||||
# Suspend everything except Launch and Terminate.
|
||||
- AddToLoadBalancer
|
||||
- AlarmNotification
|
||||
- AZRebalance
|
||||
- HealthCheck
|
||||
- ReplaceUnhealthy
|
||||
- ScheduledActions
|
||||
|
||||
ContainerInstances:
|
||||
Type: AWS::AutoScaling::LaunchConfiguration
|
||||
@@ -82,6 +93,7 @@ Resources:
|
||||
#-----------------------------------------------------------------------------#
|
||||
ECSCapacityProvider:
|
||||
Type: AWS::ECS::CapacityProvider
|
||||
DependsOn: ECSCluster
|
||||
Condition: EC2
|
||||
Properties:
|
||||
AutoScalingGroupProvider:
|
||||
|
Reference in New Issue
Block a user