convection 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/convection/model/template/resource/aws_iam_role.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c69e408725ce4fac3bf3c2e14fbc4a97a1e8b2fd
|
|
4
|
+
data.tar.gz: 20206c6acd59800813d2f2fc2e9ba981a8384c10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|