cfn-model 0.1.3 → 0.1.4
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: c6f43d459260c77c433451c5c1a628635631278e
|
|
4
|
+
data.tar.gz: 8360ce0a0f41b79465d7a3092498297a19f57cad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b09b830b77f9ad0174577bdae445de909f2b8de493f376f3b6885fd71da8ad108bb84d0989600e7a163f022d2258bf9a754d747838a68d99ed33068123debd0
|
|
7
|
+
data.tar.gz: f14587733fdd326dc524d3603f998b4334821358a3c2654e02a13be6b04193cc1831310cd37f7b2cc72b4f20640b7ae7cdfa5060bfac6e7dce75545621df042e
|
|
@@ -14,7 +14,15 @@ class CfnParser
|
|
|
14
14
|
# this will convert any !Ref or !GetAtt into tranditional hash like in json
|
|
15
15
|
YAML.add_domain_type('', 'Ref') { |type, val| { 'Ref' => val } }
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
YAML.add_domain_type('', 'GetAtt') do |type, val|
|
|
18
|
+
if val.is_a? String
|
|
19
|
+
val = val.split('.')
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
{ 'Fn::GetAtt' => val }
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
%w(Join Base64 Sub Split Select ImportValue GetAZs FindInMap And Or If Not).each do |function_name|
|
|
18
26
|
YAML.add_domain_type('', function_name) { |type, val| { "Fn::#{function_name}" => val } }
|
|
19
27
|
end
|
|
20
28
|
|
|
@@ -32,8 +32,20 @@ mapping:
|
|
|
32
32
|
# sigh this could be List<AWS::EC2::Subnet::Id> so can't enfore seq
|
|
33
33
|
Subnets:
|
|
34
34
|
type: any
|
|
35
|
-
required:
|
|
35
|
+
required: no
|
|
36
36
|
|
|
37
|
+
SubnetMappings:
|
|
38
|
+
type: seq
|
|
39
|
+
required: no
|
|
40
|
+
sequence:
|
|
41
|
+
- type: map
|
|
42
|
+
mapping:
|
|
43
|
+
SubnetId:
|
|
44
|
+
type: any
|
|
45
|
+
required: yes
|
|
46
|
+
AllocationId:
|
|
47
|
+
type: any
|
|
48
|
+
required: yes
|
|
37
49
|
Tags:
|
|
38
50
|
type: seq
|
|
39
51
|
required: no
|
|
@@ -48,6 +60,10 @@ mapping:
|
|
|
48
60
|
required: yes
|
|
49
61
|
=:
|
|
50
62
|
type: any
|
|
63
|
+
|
|
64
|
+
Type:
|
|
65
|
+
type: any
|
|
66
|
+
required: no
|
|
51
67
|
=:
|
|
52
68
|
type: any
|
|
53
69
|
=:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfn-model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Kascic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: kwalify
|