Skip to content

Commit

Permalink
update autoscaling group desired size to min size
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Bi committed Jan 28, 2021
1 parent 729d90a commit 49804c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/aws/autoscaling/autoscaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 49804c1

Please sign in to comment.