convection 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1526744195f5e97a7ee8c08588b4f5280a2d5842
4
- data.tar.gz: 29eecb89170267324e2597cd3186747dd307fa78
3
+ metadata.gz: c69e408725ce4fac3bf3c2e14fbc4a97a1e8b2fd
4
+ data.tar.gz: 20206c6acd59800813d2f2fc2e9ba981a8384c10
5
5
  SHA512:
6
- metadata.gz: c227b72a4a70ca8f6428d154396e3b26490341c10f7f923a787d40a18c9b15515f1047395c30ddfd4c48fc58283329761a40d95564c8d360e208fb2d2ec29755
7
- data.tar.gz: 32ad69eb4049ddecf9dfbf3ff4972f64ea7e10250c889fe93fd4b5178a752c8582286915b1473f920163f519107b721fc1f86544c3b98a0c780a7f7d981e1d51
6
+ metadata.gz: 90e0b1500d53f234ac3c56a0dcd537ffb442007042e51b87b8327b276deecb2896f199b0f422637bbb1862f7c7331e1b4c295d6590d90654ecff99db04939530
7
+ data.tar.gz: 130d510dce400bdd47bffa72f0726e2ecfb057f8ef03fc5a5534f128f0c223f3a1d30b7ee56e407bb6c00c496d9218da5b7e9fac361b05897e6bf539bb5ca14e
@@ -46,6 +46,17 @@ module Convection
46
46
  trust_relationship
47
47
  end
48
48
 
49
+ ## Add a canned trust policy for EMR
50
+ def trust_emr(&block)
51
+ @trust_relationship = Model::Mixin::Policy.new(:name => 'trust-emr', :template => @template)
52
+ trust_relationship.allow do
53
+ action 'sts:AssumeRole'
54
+ principal :Service => 'elasticmapreduce.amazonaws.com'
55
+ end
56
+ trust_relationship.instance_exec(&block) if block
57
+ trust_relationship
58
+ end
59
+
49
60
  ## Add a canned trust policy for Cloudtrail
50
61
  def trust_cloudtrail(&block)
51
62
  @trust_relationship =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero