1
0
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:
ebosas
2021-11-14 20:12:54 +02:00
parent d8bf928103
commit de173b0b4f

View File

@@ -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: