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:
|
ECSAutoScalingGroup:
|
||||||
Type: AWS::AutoScaling::AutoScalingGroup
|
Type: AWS::AutoScaling::AutoScalingGroup
|
||||||
|
DependsOn: ECSCluster
|
||||||
Condition: EC2
|
Condition: EC2
|
||||||
Properties:
|
Properties:
|
||||||
NewInstancesProtectedFromScaleIn: true
|
NewInstancesProtectedFromScaleIn: true
|
||||||
@@ -49,10 +50,20 @@ Resources:
|
|||||||
DesiredCapacity: 1
|
DesiredCapacity: 1
|
||||||
CreationPolicy:
|
CreationPolicy:
|
||||||
ResourceSignal:
|
ResourceSignal:
|
||||||
Timeout: PT15M
|
Timeout: PT5M
|
||||||
UpdatePolicy:
|
UpdatePolicy:
|
||||||
AutoScalingReplacingUpdate:
|
AutoScalingRollingUpdate:
|
||||||
WillReplace: true
|
MinSuccessfulInstancesPercent: 100
|
||||||
|
WaitOnResourceSignals: true
|
||||||
|
PauseTime: PT5M
|
||||||
|
SuspendProcesses:
|
||||||
|
# Suspend everything except Launch and Terminate.
|
||||||
|
- AddToLoadBalancer
|
||||||
|
- AlarmNotification
|
||||||
|
- AZRebalance
|
||||||
|
- HealthCheck
|
||||||
|
- ReplaceUnhealthy
|
||||||
|
- ScheduledActions
|
||||||
|
|
||||||
ContainerInstances:
|
ContainerInstances:
|
||||||
Type: AWS::AutoScaling::LaunchConfiguration
|
Type: AWS::AutoScaling::LaunchConfiguration
|
||||||
@@ -82,6 +93,7 @@ Resources:
|
|||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
ECSCapacityProvider:
|
ECSCapacityProvider:
|
||||||
Type: AWS::ECS::CapacityProvider
|
Type: AWS::ECS::CapacityProvider
|
||||||
|
DependsOn: ECSCluster
|
||||||
Condition: EC2
|
Condition: EC2
|
||||||
Properties:
|
Properties:
|
||||||
AutoScalingGroupProvider:
|
AutoScalingGroupProvider:
|
||||||
|
Reference in New Issue
Block a user