Caution: The documentation you are viewing is
for an older version of Zend Framework.
You can find the documentation of the current version at:
https://docs.zendframework.com/
Amazon EC2 is a web service that enables you to launch and manage server instances in Amazon’s data centers using
APIs or available tools and utilities. You can use Amazon EC2 server instances at any time, for as long as you
need, and for any legal purpose.
To make using the Ec2 class easier to use there are two static methods that can be invoked from any of the Ec2
Elements. The first static method is setKeys which will defind you AWS Access Keys as default keys. When you
then create any new object you don’t need to pass in any keys to the constructor.
To set the region that you are working in you can call the setRegion to set which Amazon Ec2 Region you are
working in. Currently there is only two region available us-east-1 and eu-west-1. If an invalid value is passed it
will throw an exception stating that.