Comparing version 0.6.9 to 0.6.10
@@ -9,2 +9,7 @@ # Upgrading | ||
**0.6.10** (Jan 22, 2015) | ||
- Allow Security Groups to be defined in `aws create` command. | ||
- Set name tag during `aws create` command. | ||
**0.6.9** (Jan 18, 2015) | ||
@@ -11,0 +16,0 @@ |
@@ -34,8 +34,11 @@ var _ = require('lodash'); | ||
examples: [ | ||
'# Specified size:', | ||
'# Specify size:', | ||
'$ overcast aws create vm-01 --size m1.small --user ubuntu', | ||
'', | ||
'# Specified image and region (Ubuntu 14.04 64bit, EBS, us-west-2):', | ||
'# Specify image and region (Ubuntu 14.04 64bit, EBS, us-west-2):', | ||
'$ overcast aws create vm-01 --region us-west-2 --image ami-978dd9a7 --user ubuntu', | ||
'', | ||
'# Specify security groups, separated by spaces:', | ||
'$ overcast aws create vm-01 --security-group-ids "sg-12a34b56 sg-90c32ab1" --user ubuntu', | ||
'', | ||
'# Enable root access:', | ||
@@ -54,2 +57,3 @@ '$ overcast aws create vm-02 --user ubuntu', | ||
{ usage: '--region REGION', default: DEFAULT_REGION }, | ||
{ usage: '--security-group-ids IDS', default: '(default)' }, | ||
{ usage: '--size SIZE', default: 't1.micro' }, | ||
@@ -56,0 +60,0 @@ { usage: '--ssh-key PATH', default: 'overcast.key' }, |
@@ -362,3 +362,4 @@ var fs = require('fs'); | ||
Enabled: utils.argIsTruthy(args.monitoring) | ||
} | ||
}, | ||
SecurityGroupIds: args['security-group-ids'].split(' ') || [] | ||
}; | ||
@@ -372,4 +373,16 @@ | ||
debugLog(data); | ||
args.CreatedInstances = data.Instances; | ||
resolve(args); | ||
var tagParams = { | ||
Resources: [data.Instances[0].InstanceId], | ||
Tags: [ | ||
{ Key: 'Name', Value: args.name } | ||
] | ||
}; | ||
ec2(args).createTags(tagParams, function (err) { | ||
if (err) { | ||
reject(err); | ||
} else { | ||
args.CreatedInstances = data.Instances; | ||
resolve(args); | ||
} | ||
}); | ||
} | ||
@@ -376,0 +389,0 @@ }); |
@@ -10,3 +10,3 @@ var fs = require('fs'); | ||
exports.VERSION = '0.6.9'; | ||
exports.VERSION = '0.6.10'; | ||
@@ -13,0 +13,0 @@ exports.clustersCache = null; |
{ | ||
"name": "overcast", | ||
"description": "A simple command line program designed to make it easy to spin up, configure, and interact with any number of machines over SSH.", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"repository": "https://github.com/andrewchilds/overcast.git", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -188,19 +188,23 @@ # ![Overcast Logo](http://i.imgur.com/eCBl2NI.png) | ||
Options: Defaults: | ||
--cluster CLUSTER default | ||
--image IMAGE ami-64e27e0c (Ubuntu 14.04 64bit, EBS, us-east-1) | ||
--monitoring false | ||
--region REGION us-east-1 | ||
--size SIZE t1.micro | ||
--ssh-key PATH overcast.key | ||
--ssh-pub-key PATH overcast.key.pub | ||
--user USERNAME root | ||
Options: Defaults: | ||
--cluster CLUSTER default | ||
--image IMAGE ami-64e27e0c (Ubuntu 14.04 64bit, EBS, us-east-1) | ||
--monitoring false | ||
--region REGION us-east-1 | ||
--security-group-ids IDS (default) | ||
--size SIZE t1.micro | ||
--ssh-key PATH overcast.key | ||
--ssh-pub-key PATH overcast.key.pub | ||
--user USERNAME root | ||
Examples: | ||
# Specified size: | ||
# Specify size: | ||
$ overcast aws create vm-01 --size m1.small --user ubuntu | ||
# Specified image and region (Ubuntu 14.04 64bit, EBS, us-west-2): | ||
# Specify image and region (Ubuntu 14.04 64bit, EBS, us-west-2): | ||
$ overcast aws create vm-01 --region us-west-2 --image ami-978dd9a7 --user ubuntu | ||
# Specify security groups, separated by spaces: | ||
$ overcast aws create vm-01 --security-group-ids "sg-12a34b56 sg-90c32ab1" --user ubuntu | ||
# Enable root access: | ||
@@ -660,3 +664,3 @@ $ overcast aws create vm-02 --user ubuntu | ||
``` | ||
Overcast v0.6.9 | ||
Overcast v0.6.10 | ||
@@ -663,0 +667,0 @@ Source code, issues, pull requests: |
317053
5506
1482