Unable to list owned images and running instances from Amazon Web Services using Zend Framework

Posted by Marcel Tjandraatmadja on Stack Overflow See other posts from Stack Overflow or by Marcel Tjandraatmadja
Published on 2010-04-14T00:22:20Z Indexed on 2010/04/14 2:53 UTC
Read the original article Hit count: 664

I am using Zend Framework's library to manage EC2 instances and AMI. However I can't list the AMI's I own and can't list existing EC2 instances.

$ec2Instance = new Zend_Service_Amazon_Ec2_Instance($awsAccessKey, $awsSecretKey);
$instances = $ec2Instance ->describe();

$ec2Instance ->describe() should list all instances but it is returning no instances even though I have three of them running at this time.

$ami = new Zend_Service_Amazon_Ec2_Image($awsAccessKey, $awsSecretKey);
$images = $ami->describe();

$ami->describe() returns all the public images but none of them are the ones I created even though I have two AMIs.

Does any one know what I am missing here?

© Stack Overflow or respective owner

Related posts about amazon-web-services

Related posts about zend-framework