Lambda issue with increase max size of autoscaling group

Dan Mascheck

trying to create a Lambda function with boto3 and increase my scaling group via lambda.

import boto3
region = 'us-east-1'
asgname = 'ASG'
autoscaling = boto3.client('autoscaling')

def lambda_handler(event, context):
autoscaling.update_auto_scaling_groups(AutoScalingGroupName=ASG, MaxSize=4)
print('Thank You')
Rohith Joseph

Please change the code like below and try:

import boto3
region = 'us-east-1'
asgname = 'ASG'
autoscaling = boto3.client('autoscaling')

def lambda_handler(event, context):
    autoscaling.update_auto_scaling_group(AutoScalingGroupName=asgname, MaxSize=4)
    print('Thank You')

I was able to make it work successfully.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Max connection pool size and autoscaling group

Javascript Increase max array size

Increase max row size in HIVE

Connection Request Timed out issue again come after increase Max Pool Size in ASP.NET ORACLE

Is there an Entity Group Max Size?

Increase max file upload size for SilverStripe site

Increase Max Header Size for Owin Hosting

Increase Domino database ACL max size

How to increase max heap size of Java 6?

How to increase AWS EC2 instance CPU utilization to 100% to test autoscaling group creating new instances?

Flink autoscaling and max parallelism

How to increase the max upload file size in ASP.NET?

How can I increase max allowed size of packet for MySQL?

Increase max java heap size via pom file

increase max_allowed_packet size in mysql docker

How to increase max request body size on nginx ingress controller and kong

Increase max file upload size in Wordpress hosted in Azure VM

Increase max_buffer_size limit of BaseIOStream in Tornado

How to increase max stack size in c++ using vscode

unable to increase the client_max_body_size using the .ebextensions method

How to increase the maximum size of the AWS lambda deployment package (RequestEntityTooLargeException)?

Gantt charts in Redmine -increase column size of issue description?

Increase "post_max_size" and "upload_max_filesize" only for a specific PHP file, and not for the whole server

Why does max number of threads decrease when I increase max heap size?

Is it possible for an autoscaling group scale based on CPUReservation for instances within that autoscaling group

print Autoscaling group and AMI used by the instaces attached to the autoscaling group

Autoscaling group instances not register on ALB

Blocked ports and autoscaling group in aws

Use Reserved instance and autoscaling group