cloud_former 0.5.12 → 0.5.13
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 455e08fb6d89772ae26e8aafe48860c97e478bd1
|
4
|
+
data.tar.gz: 24e931c5c1c05ed6806a4c0a669dfa240229010d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034974211ab749ba87fab1230d1f39703434064134903ba5f0c728697dd7329f1eb6b70a3e1abf18d171955cbe7cedb1fc10ed16af25ac67e7967114620f7881
|
7
|
+
data.tar.gz: c90be0ed15425253c2ecb05e182da9cc283a855942a224bf7a95c9316e38b607830a3d5957369fabe8d1c2ece2e847f6c38710c46521dd63ae957b6a1a22c27b
|
@@ -3,11 +3,13 @@ module CloudFormer
|
|
3
3
|
module IAM
|
4
4
|
class Group < Resource
|
5
5
|
aws_property :path, type: String
|
6
|
-
aws_property
|
6
|
+
aws_property(
|
7
|
+
:policies,
|
7
8
|
embed: true,
|
8
9
|
skip_properties: true,
|
9
10
|
list: true,
|
10
|
-
type: Policy
|
11
|
+
type: Policy,
|
12
|
+
)
|
11
13
|
end
|
12
14
|
end
|
13
15
|
end
|
@@ -5,11 +5,13 @@ module CloudFormer
|
|
5
5
|
aws_property :path, type: String
|
6
6
|
aws_property :groups, list: true, type: Group
|
7
7
|
aws_property :login_profile, type: Hash
|
8
|
-
aws_property
|
8
|
+
aws_property(
|
9
|
+
:policies,
|
9
10
|
embed: true,
|
10
11
|
skip_properties: true,
|
11
12
|
list: true,
|
12
|
-
type: Policy
|
13
|
+
type: Policy,
|
14
|
+
)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -11,6 +11,7 @@ module CloudFormer
|
|
11
11
|
|
12
12
|
aws_attribute :depends_on, list: true, type: String
|
13
13
|
aws_attribute :deletion_policy, type: String
|
14
|
+
aws_attribute :condition, type: String
|
14
15
|
|
15
16
|
def initialize(name = nil, &block)
|
16
17
|
@name = name
|
@@ -20,7 +21,7 @@ module CloudFormer
|
|
20
21
|
self.instance_eval(&block)
|
21
22
|
end
|
22
23
|
if @name.nil? || @name.empty?
|
23
|
-
|
24
|
+
raise ArgumentError, "Attempting to create a resource of type #{self.class.name} with no name"
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
@@ -56,7 +56,7 @@ module CloudFormer
|
|
56
56
|
if @outputs.any?
|
57
57
|
output_res = {}
|
58
58
|
@outputs.each do |output|
|
59
|
-
if
|
59
|
+
if output[1].is_a?(Resource) || output[1].is_a?(Parameter)
|
60
60
|
output_res[output[0]] = { 'Value' => { 'Ref' => output[1].get_name } }
|
61
61
|
elsif output[1].is_a?(Function)
|
62
62
|
output_res[output[0]] = { 'Value' => output[1].dump_json }
|
data/lib/cloud_former/version.rb
CHANGED