boto/boto — Issue #390: Spot price availability zone issue
Author: ychsiao
Created: 2011-11-08 06:46:44+00:00
State: open

```python
rs = ec2conn.get_spot_price_history(instance_type = instance_type,
availability_zone = 'ap-northeast-1a',
)
for i in rs:
pprint(i.__dict__)
```
I try to get price in special availability zone, but response 'The parameter AvailabilityZone is not recognized'.
Boto version 2.1.1 (master)

```
send: 'POST / HTTP/1.1\r\nHost: ec2.amazonaws.com\r\nAccept-Encoding: identity\r\nContent-Length: 215\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nUser-Agent: Boto/2.1.1 (darwin)\r\n\r\nAWSAccessKeyId=&Action=DescribeRegions&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-11-08T06%3A37%3A48Z&Version=2011-01-01&Signature=%3D'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: text/xml;charset=UTF-8
header: Transfer-Encoding: chunked
header: Date: Tue, 08 Nov 2011 06:37:48 GMT
header: Server: AmazonEC2
send: 'POST / HTTP/1.1\r\nHost: ec2.ap-northeast-1.amazonaws.com\r\nAccept-Encoding: identity\r\nContent-Length: 279\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nUser-Agent: Boto/2.1.1 (darwin)\r\n\r\nAWSAccessKeyId=&Action=DescribeSpotPriceHistory&AvailabilityZone=ap-northeast-1a&InstanceType=t1.micro&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-11-08T06%3A37%3A49Z&Version=2011-01-01&Signature=%3D'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Transfer-Encoding: chunked
header: Date: Tue, 08 Nov 2011 06:37:49 GMT
header: Cneonction: close
header: Server: AmazonEC2
Traceback (most recent call last):
File "/Users/ychsiao/Documents/eclipse/ec2api/src/test.py", line 160, in
ec2_spot_price_history(instance_type)
File "/Users/ychsiao/Documents/eclipse/ec2api/src/test.py", line 125, in ec2_spot_price_history
availability_zone = 'ap-northeast-1a',
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/boto-2.1.1-py2.7.egg/boto/ec2/connection.py", line 876, in get_spot_price_history
[('item', SpotPriceHistory)], verb='POST')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/boto-2.1.1-py2.7.egg/boto/connection.py", line 862, in get_list
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request

UnknownParameterThe parameter AvailabilityZone is not recognized
```