github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

newbamboo / manec2

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Assign names to your EC2 instances and images — Read more

  cancel

http://new-bamboo.co.uk

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Moved the configuration details into environment variables. Updated 
README. 
mloughran (author)
Mon Jul 21 03:50:15 -0700 2008
commit  e23a26b7dcf978c3ff05a12a923d7cdb71653343
tree    8ef5706ea3b4db223b0d81e38cc0c31cd085458e
parent  8e5f42d3d83126565e4a058ad9d094e9097800a9
manec2 /
name age
history
message
file .gitignore Loading commit data...
file README.markdown
file manec2.rb
README.markdown

Assign names to your EC2 instances and images (stored in SimpleDB). Very handy when you have more than a few running at any one time!

Add environment variables to your .profile with your AWS keys.

export MANEC2_ACCESS_KEY_ID=<key>
export MANEC2_SECRET_ACCESS_KEY=<sekret>
export MANEC2_SIMPLEDB_DOMAIN=<string_of_your_choice>

Run ./manec2.rb create_domain to create the SimpleDB domain.

Symlink the manec2.rb script to something like /usr/local/bin/manec2 so it's easily accessible.

List your instances with manec2 instances or manec2 i for short. List images with manec2 images

Set the name of an instance or image with manec2 i-12345 my_staging_server or manec2 a-54321 my_staging_image.

You can ssh into an instance by name like so manec2 ssh my_staging_image. It will lookup the domain of the ec2 instance and run ssh -i ~/.ec2/id_rsa-#{pv_or_gsg}-keypair root@ec2-123-456-789-902.compute-1.amazonaws.com for you. If you know the instance id you can use that instead of the name, for example manec2 ssh i-12345.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server