You have to pass additional parameters as keyword parameters, e.g.:
boto.ec2.autoscale.connect_to_region('us-west-2', aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY)
Alternatively, you could put your credentials in a boto config file (~/.boto
) or in environment variables and boto will find them.