amazon ec2 - Getting error while creating auto scaling group. ['HmacAuthV4Handler'].How to solve it -


getting error when tried create auto scaling group.is possible add running instances code.

import boto.ec2.autoscale  boto.connection import awsqueryconnection autoscale = boto.ec2.autoscale.connect_to_region('us-west-2') boto.ec2.autoscale import autoscaleconnection boto.ec2.autoscale import launchconfiguration boto.ec2.autoscale import autoscalinggroup acak = 'xxxxxxxx' asak = 'yyyyyyy' conn= boto.connect_autoscale(acak, asak) conn.get_all_groups() print ('creating launch configuration') lc = launchconfiguration(name='test-launch_config', image_id='ami-6989a659', key_name='ki',security_groups='') conn.create_launch_configuration(lc) print ('launch configuration created successfully') print ('creating autoscalinggroup') ag = autoscalinggroup(group_name='test_group', load_balancers=['my-lb'],availability_zones=['us-west-2a', 'us-west-2b'],launch_config=lc,  min_size=2, max_size=4,connection=conn) conn.create_auto_scaling_group(ag) ag.get_activities() print ('autoscalinggroup created successfully')  boto.exception.noauthhandlerfound: no handler ready authenticate. 1  handlers checked. ['hmacauthv4handler']  

check secret key , access key credentials.


Comments