Project

yun

0.0
No commit activity in last 3 years
No release in over 3 years
A command line tool to manage Amazon cloud service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.7

Runtime

>= 1.0.0
>= 0.4.5
>= 0.14.0
 Project Readme

yun 云

Build Status

About

yun is a command line tool for manage Amazon EC2 environment.

It's still working in process. Now it supports create, destroy, list, ssh, chef provision commands.

Ruby Gem

Install yun by

(sudo) gem install yun

You can find yun in rubygems.org

https://rubygems.org/gems/yun

How to use

config file

After installing yun, you need to create a config file ~/.yun.

Here is an example configuration:

#######################################################
# Yun Credentials File
#
:default:
  :aws_access_key_id: YOUR_AWS_ACCESS_KEY_ID
  :aws_secret_access_key: YOUR_AWS_SECRET_ACCESS_KEY
  :region: us-west-1
  :key_name: YOUR_KEY_PAIR_NAME
  :chef_repo: /PATH/TO/YOUR/CHEF_REPO (optional)
  :os:
    :ubuntu:
      :image: ami-cba1fe8e
      :user: ubuntu
    :amazon:
      :image: ami-1bd68a5e
      :user: ec2-user
    :windows:
      :image: ami-ed3768a8
      :user:
    :centos:
      :image: ami-dd2f7298
      :user: root

create EC2 node

yun node create NODE_NAME --os OS_NAME --instance_type INSTANCE_TYPE

OS_NAME could be os listed in your ~/.yun configuration file (ubuntu, amazon, centos, etc).

INSTANCE_TYPE could be micro, small, etc

list all EC2 node

yun node list

destroy EC2 node

yun node destroy NODE_NAME

ssh to EC2 node

yun ssh NODE_NAME

provision EC2 node using chef

yun chef NODE_NAME ROLE_NAME

Other

Feel free to contact me if you have any problem: