https://github.com/garno/ec2
Manage your EC2 instances with some ruby magic.
https://github.com/garno/ec2
Last synced: 28 days ago
JSON representation
Manage your EC2 instances with some ruby magic.
- Host: GitHub
- URL: https://github.com/garno/ec2
- Owner: garno
- License: mit
- Created: 2013-03-19T00:46:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-19T00:47:15.000Z (about 13 years ago)
- Last Synced: 2025-03-20T11:57:58.281Z (about 1 year ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EC2
EC2 allows you to control your EC2 instances with ease. Btw, this is a completly stupid name. Find something else and quick. __Thank you.__
## Warning
This is a work in progress (or at least was...). It might not be a good idea to use it for production and real server handling.
## Usage
Here's a short example of what can be done. The complete API is documented [here](https://github.com/garno/ec2/wiki).
# Play with an instance
instance = EC2::Instances.find('i-1ac3f167')
instance.restart
# => true
instance.tags = {
'Name' => 'app-prod-1',
'Environment' => 'production'
}
# => true
# Stop all instances
EC2::Instances.all.each(&:stop)
# Create and associate an Elastic IP
ip = EC2::ElasticIP.create
ip.associate_with(instance)
# => true
## Licence
© under the MIT license. Read the license [here](https://github.com/garno/ec2/blob/master/LICENSE).