stemcell 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/stemcell CHANGED
@@ -64,6 +64,12 @@ options = Trollop::options do
64
64
  :default => ENV['KEY_NAME'],
65
65
  )
66
66
 
67
+ opt('iam_role',
68
+ 'IAM role to associate with the instance',
69
+ :type => String,
70
+ :default => ENV['IAM_ROLE'],
71
+ )
72
+
67
73
  opt('chef_data_bag_secret',
68
74
  'path to secret file (or the string containing the secret)',
69
75
  :type => String,
@@ -1,3 +1,3 @@
1
1
  module Stemcell
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/lib/stemcell.rb CHANGED
@@ -69,6 +69,9 @@ module Stemcell
69
69
  # specify availability zone (optional)
70
70
  launch_options[:availability_zone] = opts['availability_zone'] if opts['availability_zone']
71
71
 
72
+ # specify IAM role (optional)
73
+ launch_options[:iam_instance_profile] = opts['iam_role'] if opts['iam_role']
74
+
72
75
  # generate user data script to bootstrap instance, include in launch optsions
73
76
  launch_options[:user_data] = render_template(opts)
74
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stemcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-09 00:00:00.000000000 Z
12
+ date: 2013-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop