Programmer's Reference Guide
| Zend_Service_Amazon |
Zend_Service_Amazon_Ec2
Introduction
Zend_Service_Amazon_Ec2 provides an interface to Amazon Elastic Clound Computing (EC2).
What is Amazon Ec2?
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.
Static Methods
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.
Example #1 setKeys() Example
- Zend_Service_Amazon_Ec2_Ebs::setKeys('aws_key','aws_secret_key');
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.
Example #2 setRegion() Example
- Zend_Service_Amazon_Ec2_Ebs::setRegion('us-east-1');
Note: Set Amazon Ec2 Region
Alternativly you can set the region when you create each class as the third parameter in the constructor method.
| Zend_Service_Amazon |
Select a Version
Languages Available
Components
Search the Manual
Navigation
- Programmer's Reference Guide
- Programmer's Reference Guide
- Zend Framework Reference
- Zend_Service
- Introduction
- Zend_Service_Akismet
- Zend_Service_Amazon
- Zend_Service_Amazon_Ec2
- Zend_Service_Amazon_Ec2: Instances
- Zend_Service_Amazon_Ec2: Windows Instances
- Zend_Service_Amazon_Ec2: Reserved Instances
- Zend_Service_Amazon_Ec2: CloudWatch Monitoring
- Zend_Service_Amazon_Ec2: Amazon Machine Images (AMI)
- Zend_Service_Amazon_Ec2: Elastic Block Stroage (EBS)
- Zend_Service_Amazon_Ec2: Elastic IP Addresses
- Zend_Service_Amazon_Ec2: Keypairs
- Zend_Service_Amazon_Ec2: Regions and Availability Zones
- Zend_Service_Amazon_Ec2: Security Groups
- Zend_Service_Amazon_S3
- Zend_Service_Amazon_Sqs
- Zend_Service_Audioscrobbler
- Zend_Service_Delicious
- Zend_Service_DeveloperGarden
- Zend_Service_Flickr
- Zend_Service_LiveDocx
- Zend_Service_Nirvanix
- Zend_Service_ReCaptcha
- Zend_Service_Simpy
- Zend_Service_SlideShare
- Zend_Service_StrikeIron
- Zend_Service_StrikeIron: Bundled Services
- Zend_Service_StrikeIron: Advanced Uses
- Zend_Service_Technorati
- Zend_Service_Twitter
- Zend_Service_WindowsAzure
- Zend_Service_Yahoo

+ Add A Comment