Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 721669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:54:01+00:00 2026-05-14T05:54:01+00:00

I am using Zend Framework’s library to manage EC2 instances and AMI. However I

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:54:02+00:00Added an answer on May 14, 2026 at 5:54 am

    The problem was that you have to explicitly set the region for your instances.

    As of version 1.10.3 of Zend Framework the following will not work because it will set a different variable internally:

    $ec2Instance = new Zend_Service_Amazon_Ec2_Instance($awsAccessKey, $awsSecretKey);
    $ec2Instance->setRegion('us-west-1');
    

    Moreover us-west-1 is considered as an invalid region using version 1.10.3 of Zend Framework.

    Instead setting the region in the constructor will make it work:

    $ec2Instance = new Zend_Service_Amazon_Ec2_Instance($awsAccessKey, $awsSecretKey, 'us-west-1');
    

    Then I was able to use $ec2Instance ->describe() to list all my instances.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Zend Framework, I have a layout.phtml which renders navigation.phtml. How can
I'm using Zend Framework and I currently have an existing form using zend-form which
I'm learning Zend Framework using their manual at framework.zend.com. where can I find the
I have PHP project and I am using Zend Framework. There is a library
I am using Zend Framework with a MySQL database. Can zend select produce something
Using Zend Framework, I've created a Model to insert a record into a database.
I set up a Zend Framework application using Zend_Tool, but I wanted multiple modules
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I'm trying to develop a site using Zend Framework, but i have a problem:
I am working on a Facebook game which is developed using Zend framework. Right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.