Giter VIP home page Giter VIP logo

ec2's Introduction

Amazon EC2 plugin for CakePHP

Version 1.0 for cake 2.x

This plugin will allow you to interface with Amazon EC2 and perform a subset of the functionality that the EC2 environment offers.

Requirements

CakePHP 2.0+ is required for this plugin.

The AmazonServer Model uses MongoCake plugin for storage.

Installation

Clone the MongoCake plugin, or add as a submodule to your git repository. Alternatively you can download the archive via Github, and place into your Plugin directory:

$ git clone git://github.com/lorenzo/MongoCake.git Plugin/MongoCake
or
$ git submodule add git://github.com/lorenzo/MongoCake.git Plugin/MongoCake

Clone this Ec2 repository into your Plugin directory, or setup as a submodule, or extract an archive from Github:

$ git clone git://github.com/CakeDC/Ec2.git Plugin/Ec2
or
$ git submodule add git://github.com/CakeDC/Ec2.git Plugin/Ec2

Configuration

You need to make CakePHP aware of your plugin, put the following like in your Config/bootstrap.php file

CakePlugin::load('Ec2');

An example configuration file is in the Ec2 directory Config/Amazon.php.default. It contains an example of how Config/database.php should look like after configuring the new datasource, you can copy the example over to the mentioned file and fill in the details.

The settings are taken from your Amazon account settings.

CLI Usage

The command line lets you view information about your amazon ec2 instances, as well as interact with them.

Available commands:

  • create
  • run
  • describe
  • start
  • stop
  • reboot
  • terminate
  • status

Describe

Show all information about current instances registered with Amazon:

$ cake Ec2.amazon_server describe

Status

View information about a specific instance id:

$ cake Ec2.amazon_server status 4e9e405eb67099021c000000

Reboot

Issue instructions to reboot the instance specified:

$ cake Ec2.amazon_server reboot 4e9e405eb67099021c000000

Stop

Stop an instance. Unlike terminate, this instance will be available for running again later:

$ cake Ec2.amazon_server stop 4e9e405eb67099021c000000

Start

Start an instance that has been stopped

$ cake Ec2.amazon_server start 4e9e405eb67099021c000000

Terminate

Terminate a specific EC2 instance:

$ cake Ec2.amazon_server terminate 4e9e405eb67099021c000000

Terminate all instances:

$ cake Ec2.amazon_server terminate all

Support

For support and feature requests, please use Github issues.

For more information about our Professional CakePHP Services please visit the Cake Development Corporation website.

Branch strategy

The master branch holds the STABLE latest version of the plugin. Develop branch is UNSTABLE and used to test new features before releasing them.

Previous maintenance versions are named after the CakePHP compatible version, for example, branch 1.3 is the maintenance version compatible with CakePHP 1.3. All versions are updated with security patches.

Contributing to this Plugin

Please feel free to contribute to the plugin with new issues, requests, unit tests and code fixes or new features. If you want to contribute some code, create a feature branch from develop, and send us your pull request. Unit tests for new features and issues detected are mandatory to keep quality high.

License

Copyright 2011, Cake Development Corporation

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.

Copyright

Copyright 2011
Cake Development Corporation
1785 E. Sahara Avenue, Suite 490-423
Las Vegas, Nevada 89104
http://cakedc.com

ec2's People

Contributors

predominant avatar lorenzo avatar yeliparra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.