newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.43k stars 631 forks source link

boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request #93

Open sourcepirate opened 9 years ago

sourcepirate commented 9 years ago

I've my Key pair and security group set up in us-west California region and my aws IAM user credentials in boto conf. If i connect with ./bees up -s 1 -z us-west-1c -g testgroup -k socketkey im getting Searching for key file in home/load/.ssh/SocketIO.pem Connecting to the hive. Attempting to call up 1 bees. send: 'POST / HTTP/1.1\r\nHost: ec2.amazonaws.com\r\nAccept-Encoding: identity\r\nContent-Length: 356\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nUser-Agent: Boto/2.0 (linux2)\r\n\r\nAWSAccessKeyId=AKIAIXWQQPPM6MSCN7MA&Action=RunInstances&ImageId=ami-ff17fb96&InstanceType=t1.micro&KeyName=SocketIO&MaxCount=1&MinCount=1&Placement.AvailabilityZone=us-west-1&SecurityGroup.1=testgroup&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-09-22T14%3A46%3A49Z&Version=2011-01-01&Signature=Ql3oUbbX0My2cnPhwoKBFkT3cDUiqs0vLf/WcpLv9wM%3D' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Transfer-Encoding: chunked header: Date: Mon, 22 Sep 2014 14:46:47 GMT header: Cneonction: close header: Server: AmazonEC2 Traceback (most recent call last): File "./bees", line 6, in main.main() File "/home/load/Downloads/bees/beeswithmachineguns/beeswithmachineguns/main.py", line 212, in main parse_arguments() File "/home/load/Downloads/bees/beeswithmachineguns/beeswithmachineguns/main.py", line 154, in parse_arguments options.instance, options.login, options.key) File "/home/load/Downloads/bees/beeswithmachineguns/beeswithmachineguns/bees.py", line 108, in up placement=zone) File "/usr/local/lib/python2.7/dist-packages/boto/ec2/connection.py", line 618, in run_instances return self.get_object('RunInstances', params, Reservation, verb='POST') File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 699, in get_object raise self.ResponseError(response.status, response.reason, body) boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request <?xml version="1.0" encoding="UTF-8"?>

InvalidParameterValueInvalid availability zone: [us-west-1]78069c0e-d4d3-47cc-862f-5c5b9a4a24bd