Issue Details (XML | Word | Printable)

Key: ZF-6483
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Jon Whitcraft
Reporter: Mads Mobæk
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Service_Amazon_Ec2 describe() won't work for european instances

Created: 01/May/09 05:26 AM   Updated: 20/May/09 08:45 AM   Resolved: 20/May/09 08:21 AM
Return to search "Fixed in 1.5.1"
Component/s: Zend_Service_Amazon_Ec2
Affects Version/s: 1.8.0
Fix Version/s: 1.8.2

Time Tracking:
Not Specified


 Description  « Hide

When using the sample code in the documentation:

$ec2_instance = new Zend_Service_Amazon_Ec2_Instance('aws_key',
                                                     'aws_secret_key');
$return = $ec2_instance->describe();

to return a list of instances, I got no results. But I was indeed running an instance. After searching I found the solution here: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1927 . I successfully managed to list my european instances when changing the following:

Zend_Service_Amazon_Ec2_Abstract line 41
const EC2_ENDPOINT = 'ec2.amazonaws.com';

to

Zend_Service_Amazon_Ec2_Abstract line 41
const EC2_ENDPOINT = 'eu-west-1.ec2.amazonaws.com';

I suggest adding a setEndpoint / setRegion method to the Ec2 classes.



Jon Whitcraft added a comment - 01/May/09 07:52 AM

I will work on this and get something in 1.8.1


Jon Whitcraft added a comment - 13/May/09 04:01 PM

I missed 1.8.1 due to time contraints with my RL job. I'm working on this tonight so it will be in 1.8.2


Jon Whitcraft added a comment - 20/May/09 08:21 AM

This was fixed with r15647