Sha256: b5e8ed0307f7fe54451984281e0e974579749931e3133195a5bab3678fd44c1a

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# Cloudster

Cloudster exposes simple helper methods to provision your AWS cloud.
Cloudster uses the AWS APIs to provision stacks on Amazon Cloud.


- This gem is under active development. Currently supports only a basic EC2 resource .

##Installation

    gem install cloudster

## Usage

Create AWS EC2 resources as shown here:

    app_server = Cloudster::Ec2.new(:name => 'AppServer',
      :key_name => 'mykey',
      :image_id => 'ami_image_id'
    )
    app_server_2 = Cloudster::Ec2.new(:name => 'AppServer',
      :key_name => 'mykey',
      :image_id => 'ami_image_id'
    )

Create a stack out of the resources :

    stack = Cloudster::Cloud.new(:resources => [app_server, app_server_2])
Now you can do stuff like :

- Get the CloudFormation template for a resource in Ruby Hash :
    
        app_server.template
- Get the CloudFormation template for the stack :
    
        stack.template(:description => 'Description of the stack')
    
And most importantly :

- Provision the stack :

        stack.provision(:stack_name => 'Shitty stack',
          :access_key_id => 'accesskeyid',
          :secret_access_key => 'topsecretaccesskey')



##License

MIT

*Free Software, Sweet Child !*

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudster-0.0.1 README.md