Skip to content

Commit

Permalink
Merge pull request #14 from base2Services/feature/max_batch_size_config
Browse files Browse the repository at this point in the history
Allow setting maxbatchsize via config
  • Loading branch information
Samseppiol committed Aug 19, 2021
2 parents f50236a + c4ead73 commit 8a6c5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eks-cluster.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@
]
asg_tags = tags.clone.map(&:clone).concat(asg_tags).uniq.each {|tag| tag[:PropagateAtLaunch] = false }
pause_time = external_parameters.fetch(:pause_time, 'PT5M')
max_batch_size = external_parameters.fetch(:max_batch_size, '1')
AutoScaling_AutoScalingGroup(:EksNodeAutoScalingGroup) {
UpdatePolicy(:AutoScalingRollingUpdate, {
MaxBatchSize: '1',
MaxBatchSize: max_batch_size,
MinInstancesInService: FnIf('SpotEnabled', 0, Ref('DesiredCapacity')),
SuspendProcesses: %w(HealthCheck ReplaceUnhealthy AZRebalance AlarmNotification ScheduledActions),
PauseTime: pause_time
Expand All @@ -244,7 +245,6 @@
Tags asg_tags
}


Output(:EksNodeSecurityGroup) {
Value(Ref(:EksNodeSecurityGroup))
}
Expand Down

0 comments on commit 8a6c5d9

Please sign in to comment.