News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Amazon Web Services PHP Blog:
Provision an Amazon EC2 Instance with PHP
August 23, 2013 @ 09:15:23

On the Amazon Web Services blog today Jeremy Lindblom shares a quick way you can use the AWS SDK to create an EC2 instance directly from PHP in just a few lines of code.

Amazon EC2 is a powerful AWS service that includes the ability to provision on-demand servers. While you can easily do this through the AWS Management Console, in this post, I want show you how to use the AWS SDK for PHP to do it programmatically by interacting with the Amazon EC2 API.

He starts with an outline of the steps (requiring a little bit of EC2-side configuration first) and shows how to use the SDK. His code sets up the client, creates the key pair and security group then is ready to make the instance. You can give the "runInstances" method a configuration that includes number of instances and what type. There's also some hooks back into the request that can tell you when the instances are running and how to get the path to the new instance (for ssh access).

0 comments voice your opinion now!
amazon webservice api provision instance ec2 sdk tutorial

Link: http://blogs.aws.amazon.com/php/post/TxMLFLE50WUAMR/Provision-an-Amazon-EC2-Instance-with-PHP

blog comments powered by Disqus

Similar Posts

PseudoCoder.com: How To Really Use Xdebug To Speed Up Your App

Jim Plush's Blog: PHP Socket Tutorial Part 1

Crynobone\'s Blog: Creating our own RSS Aggregators

James Morris: A WebSockets, Ratchet, Silex and Redis PubSub Implementation

James Morris' Blog: A Symfony2 Console Command and the Foursquare API Venuehistory


Community Events

Don't see your event here?
Let us know!


community programming laravel part2 application example project composer list symfony podcast language yii2 interview introduction php7 api opinion framework series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework