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

  • Home
  • SEARCH
  • 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(MVC part of it), and need to either redirect user
I am using the Zend Framework. I have a controller named 'UserController' that has
I have been using the Zend Framework with an MVC configuration, read about Ruby
This is my first experience using the Zend Framework. I am attempting to follow
Using Zend Framework I want to use controllers stored in a directory which is
Using Zend Framework, I've created a Model to insert a record into a database.
In Zend Framework 1.8, using Zend_Tool, the framework now generates controllers, actions, etc. automatically.
Does the Zend Framework (or applications built using Zend_Application) provide any mechanism for persisting
I'm using Zend Framework 1.8. I have a problem with headMeta() duplicating my meta
I have recently started using Zend Framework. I started developing on my local XAMPP

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.