autoscaling

This commit is contained in:
dzikafoczka 2024-12-21 09:40:18 +01:00
parent e3f3ad1e0b
commit 2c03bca76b

View File

@ -270,9 +270,6 @@ def put_scaling_policies(autoscaling_client, asg_arn):
AutoScalingGroupName=f"{PREFIX}-asg",
PolicyName=f"{PREFIX}-scale-up",
PolicyType='TargetTrackingScaling',
AdjustmentType="ChangeInCapacity",
ScalingAdjustment=1,
MetricAggregationType="Average",
Cooldown=180,
TargetTrackingConfiguration={
'PredefinedMetricSpecification': {
@ -289,9 +286,6 @@ def put_scaling_policies(autoscaling_client, asg_arn):
AutoScalingGroupName=f"{PREFIX}-asg",
PolicyName=f"{PREFIX}-scale-down",
PolicyType='TargetTrackingScaling',
AdjustmentType="ChangeInCapacity",
ScalingAdjustment=1,
MetricAggregationType="Average",
Cooldown=180,
TargetTrackingConfiguration={
'PredefinedMetricSpecification': {