cloud-maker 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/cloud-maker +1 -1
  2. data/lib/cloud_maker/ec2.rb +5 -0
  3. metadata +2 -2
data/bin/cloud-maker CHANGED
@@ -180,7 +180,7 @@ class CloudMakerCLI < Thor
180
180
  string = string.dup
181
181
  string.gsub!(/([\{\}\[\]])/, '\1'.magenta)
182
182
  string.gsub!(/([\,])/, '\1'.yellow)
183
- string.gsub!(/([\:\"\']?[0-9a-zA-Z_]*[\"\']?)=>/, '\1'.cyan + '=>')
183
+ string.gsub!(/([\:\"\']?[0-9a-zA-Z_\:]*[\"\']?)=>/, '\1'.cyan + '=>')
184
184
  string
185
185
  end
186
186
 
@@ -35,6 +35,10 @@ module CloudMaker
35
35
  'default' => 'default',
36
36
  'required' => true,
37
37
  'description' => 'The Amazon EC2 security group to launch the instance with.'
38
+ },
39
+ 'iam_role' => {
40
+ 'default' => '',
41
+ 'description' => 'The IAM instance profile name or ARN you would like to use.'
38
42
  }
39
43
  }
40
44
  }
@@ -102,6 +106,7 @@ module CloudMaker
102
106
  end
103
107
  instance = region.instances.create(
104
108
  :image_id => cloud_maker_config['ami'],
109
+ :iam_instance_profile => cloud_maker_config['iam_role'],
105
110
  :security_groups => cloud_maker_config['security_group'],
106
111
  :instance_type => cloud_maker_config['instance_type'],
107
112
  :key_name => cloud_maker_config['key_pair'],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-17 00:00:00.000000000 Z
13
+ date: 2012-08-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colorize