From 49804c1ff8306e497e461a07cb3be6509cfd3665 Mon Sep 17 00:00:00 2001 From: Victor Bi Date: Thu, 28 Jan 2021 14:45:12 +1300 Subject: [PATCH] update autoscaling group desired size to min size --- common/aws/autoscaling/autoscaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/aws/autoscaling/autoscaling.go b/common/aws/autoscaling/autoscaling.go index 9341c8d92..a32db45ab 100644 --- a/common/aws/autoscaling/autoscaling.go +++ b/common/aws/autoscaling/autoscaling.go @@ -160,7 +160,7 @@ func (this *AutoScaling) CreateLaunchConfiguration( func (this *AutoScaling) CreateAutoScalingGroup(name, launchConfigName, subnets string, minSize, maxSize int) error { input := &autoscaling.CreateAutoScalingGroupInput{ AutoScalingGroupName: aws.String(name), - DesiredCapacity: aws.Int64(int64(maxSize)), + DesiredCapacity: aws.Int64(int64(minSize)), MinSize: aws.Int64(int64(minSize)), MaxSize: aws.Int64(int64(maxSize)), LaunchConfigurationName: aws.String(launchConfigName),