Category : aws-auto-scaling

I’m trying to create an auto-scaling group with different templates and types using boto3, This is the code I used: import boto3 client = boto3.client(‘autoscaling’) def create_auto_scaling_group(**kwargs): response = client.create_auto_scaling_group( AutoScalingGroupName=’TEST-ASG’, LaunchTemplate={ ‘LaunchTemplateName’: ‘TEST-Template’, ‘Version’: ‘5’ }, MixedInstancesPolicy={ ‘LaunchTemplate’: { ‘LaunchTemplateSpecification’: { ‘LaunchTemplateName’: ‘TEST-Template’, ‘Version’: ‘5’ }, ‘Overrides’: [ { ‘InstanceType’: ‘g4dn.xlarge’, ‘LaunchTemplateSpecification’: { ‘LaunchTemplateName’: ..

Read more