cfndsl 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cfndsl/aws/types.yaml +1 -1
- data/lib/cfndsl/version.rb +1 -1
- data/sample/autoscale.rb +8 -7
- data/sample/autoscale2.rb +7 -8
- data/sample/codedeploy.rb +2 -4
- data/sample/config_service.rb +2 -1
- data/sample/lambda.rb +1 -2
- data/spec/fixtures/test.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTEyMmRhYWYxYWNjZGU2Yzg2ZDc2MDMyZjFmZTA2YWI2MjZjNTczNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Nzc3MGU4Njg5NmVkNGExN2Q0OGVhZTIzMDBkNWQwNGM0ODM2ZmYwNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzcxNWEyOTA4Mzc5NzRlODYyZThkYzdkZmQ5NTI5MWVhOTIxNGI3NDViOTFi
|
10
|
+
MjZjYWE4OGE2MjMxYTM1NmQ5NzZjMzNlYjNmNWU2MjlmZDE5YjUyYzQ3ZDg2
|
11
|
+
NTg2ZjdjYjI2NWM5YzA4NDk4ZWRhY2U5YzllNWUzN2YyNDlmZTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTk1ZjQyN2VhMDhiMTBhYWUwMWMwMTViNGFlYzk1NzA1YTgwNzAyNDhhNjQ4
|
14
|
+
YzE4ZDY2MzY2ODAxYTJlODFjNjkxNmQ1NGVhNzAyMWE2ZjI1NTBlYjk5NGI0
|
15
|
+
YTk0ZmU3MDFhMTg2MmQ1MjAyNjNmYzdlMDFiZjVmYzQ5N2FkMDQ=
|
data/lib/cfndsl/aws/types.yaml
CHANGED
data/lib/cfndsl/version.rb
CHANGED
data/sample/autoscale.rb
CHANGED
@@ -51,8 +51,7 @@ a stack from this template.
|
|
51
51
|
'us-west-1' => { '32' => 'ami-c9c7978c', '64' => 'ami-cfc7978a' },
|
52
52
|
'eu-west-1' => { '32' => 'ami-37c2f643', '64' => 'ami-31c2f645' },
|
53
53
|
'ap-southeast-1' => { '32' => 'ami-66f28c34', '64' => 'ami-60f28c32' },
|
54
|
-
'ap-northeast-1' => { '32' => 'ami-9c03a89d', '64' => 'ami-a003a8a1' }
|
55
|
-
)
|
54
|
+
'ap-northeast-1' => { '32' => 'ami-9c03a89d', '64' => 'ami-a003a8a1' })
|
56
55
|
|
57
56
|
# We can also write arbitrary ruby code
|
58
57
|
|
@@ -185,7 +184,8 @@ a stack from this template.
|
|
185
184
|
{
|
186
185
|
'Name' => 'AutoScalingGroupName',
|
187
186
|
'Value' => Ref('WebServerGroup')
|
188
|
-
}
|
187
|
+
}
|
188
|
+
])
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
@@ -198,7 +198,8 @@ a stack from this template.
|
|
198
198
|
'LoadBalancerPort' => '80',
|
199
199
|
'InstancePort' => Ref('WebServerPort'),
|
200
200
|
'Protocol' => 'HTTP'
|
201
|
-
}
|
201
|
+
}
|
202
|
+
])
|
202
203
|
Property('HealthCheck',
|
203
204
|
# FnFormat replaces %0, %1, etc with passed in parameters
|
204
205
|
# Note that it renders to a call to Fn::Join in the json.
|
@@ -206,8 +207,7 @@ a stack from this template.
|
|
206
207
|
'HealthyThreshold' => '3',
|
207
208
|
'UnhealthyThreshold' => '5',
|
208
209
|
'Interval' => '30',
|
209
|
-
'Timeout' => '5'
|
210
|
-
)
|
210
|
+
'Timeout' => '5')
|
211
211
|
end
|
212
212
|
|
213
213
|
Resource('InstanceSecurityGroup') do
|
@@ -227,7 +227,8 @@ a stack from this template.
|
|
227
227
|
'ToPort' => Ref('WebServerPort'),
|
228
228
|
'SourceSecurityGroupOwnerId' => FnGetAtt('ElasticLoadBalancer', 'SourceSecurityGroup.OwnerAlias'),
|
229
229
|
'SourceSecurityGroupName' => FnGetAtt('ElasticLoadBalancer', 'SourceSecurityGroup.GroupName')
|
230
|
-
}
|
230
|
+
}
|
231
|
+
])
|
231
232
|
end
|
232
233
|
|
233
234
|
Output('URL') do
|
data/sample/autoscale2.rb
CHANGED
@@ -50,8 +50,7 @@ a stack from this template.
|
|
50
50
|
'us-west-1' => { '32' => 'ami-c9c7978c', '64' => 'ami-cfc7978a' },
|
51
51
|
'eu-west-1' => { '32' => 'ami-37c2f643', '64' => 'ami-31c2f645' },
|
52
52
|
'ap-southeast-1' => { '32' => 'ami-66f28c34', '64' => 'ami-60f28c32' },
|
53
|
-
'ap-northeast-1' => { '32' => 'ami-9c03a89d', '64' => 'ami-a003a8a1' }
|
54
|
-
)
|
53
|
+
'ap-northeast-1' => { '32' => 'ami-9c03a89d', '64' => 'ami-a003a8a1' })
|
55
54
|
|
56
55
|
# We can also write arbitrary ruby code
|
57
56
|
|
@@ -91,8 +90,7 @@ a stack from this template.
|
|
91
90
|
UpdatePolicy('AutoScalingRollingUpdate',
|
92
91
|
'MinInstancesInService' => '1',
|
93
92
|
'MaxBatchSize' => '1',
|
94
|
-
'PauseTime' => 'PT15M'
|
95
|
-
)
|
93
|
+
'PauseTime' => 'PT15M')
|
96
94
|
AvailabilityZones FnGetAZs('')
|
97
95
|
LaunchConfigurationName Ref('LaunchConfig')
|
98
96
|
MinSize 1
|
@@ -188,7 +186,8 @@ a stack from this template.
|
|
188
186
|
'LoadBalancerPort' => '80',
|
189
187
|
'InstancePort' => Ref('WebServerPort'),
|
190
188
|
'Protocol' => 'HTTP'
|
191
|
-
}
|
189
|
+
}
|
190
|
+
])
|
192
191
|
Property('HealthCheck',
|
193
192
|
# FnFormat replaces %0, %1, etc with passed in parameters
|
194
193
|
# Note that it renders to a call to Fn::Join in the json.
|
@@ -196,8 +195,7 @@ a stack from this template.
|
|
196
195
|
'HealthyThreshold' => '3',
|
197
196
|
'UnhealthyThreshold' => '5',
|
198
197
|
'Interval' => '30',
|
199
|
-
'Timeout' => '5'
|
200
|
-
)
|
198
|
+
'Timeout' => '5')
|
201
199
|
end
|
202
200
|
|
203
201
|
Resource('InstanceSecurityGroup') do
|
@@ -217,7 +215,8 @@ a stack from this template.
|
|
217
215
|
'ToPort' => Ref('WebServerPort'),
|
218
216
|
'SourceSecurityGroupOwnerId' => FnGetAtt('ElasticLoadBalancer', 'SourceSecurityGroup.OwnerAlias'),
|
219
217
|
'SourceSecurityGroupName' => FnGetAtt('ElasticLoadBalancer', 'SourceSecurityGroup.GroupName')
|
220
|
-
}
|
218
|
+
}
|
219
|
+
])
|
221
220
|
end
|
222
221
|
|
223
222
|
Output('URL') do
|
data/sample/codedeploy.rb
CHANGED
@@ -16,8 +16,7 @@ CloudFormation do
|
|
16
16
|
Type 'AWS::CodeDeploy::DeploymentConfig'
|
17
17
|
Property('MinimumHealthyHosts',
|
18
18
|
Type: 'FLEET_PERCENT',
|
19
|
-
Value: '50'
|
20
|
-
)
|
19
|
+
Value: '50')
|
21
20
|
end
|
22
21
|
|
23
22
|
Resource('MyDeploymentGroup') do
|
@@ -35,8 +34,7 @@ CloudFormation do
|
|
35
34
|
ETag: '1234567890ABCDEF',
|
36
35
|
Version: '10'
|
37
36
|
}
|
38
|
-
}
|
39
|
-
)
|
37
|
+
})
|
40
38
|
Property('Ec2TagFilters', [{
|
41
39
|
Key: 'Role',
|
42
40
|
Value: 'myapp',
|
data/sample/config_service.rb
CHANGED
data/sample/lambda.rb
CHANGED
data/spec/fixtures/test.rb
CHANGED
@@ -24,14 +24,16 @@ CloudFormation do
|
|
24
24
|
[
|
25
25
|
FnEquals(Ref('One'), 'Test'),
|
26
26
|
FnNot(FnEquals(Ref('Two'), 'Test'))
|
27
|
-
]
|
27
|
+
]
|
28
|
+
))
|
28
29
|
|
29
30
|
Condition('OneIsTestOrTwoIsTest',
|
30
31
|
FnOr(
|
31
32
|
[
|
32
33
|
FnEquals(Ref('One'), 'Test'),
|
33
34
|
FnEquals(Ref('Two'), 'Test')
|
34
|
-
]
|
35
|
+
]
|
36
|
+
))
|
35
37
|
|
36
38
|
Output(:One, FnBase64(Ref('One')))
|
37
39
|
|
@@ -67,8 +69,7 @@ CloudFormation do
|
|
67
69
|
UpdatePolicy('AutoScalingRollingUpdate',
|
68
70
|
'MinInstancesInService' => '1',
|
69
71
|
'MaxBatchSize' => '1',
|
70
|
-
'PauseTime' => 'PT15M'
|
71
|
-
)
|
72
|
+
'PauseTime' => 'PT15M')
|
72
73
|
AvailabilityZones FnGetAZs('')
|
73
74
|
LaunchConfigurationName Ref('LaunchConfig')
|
74
75
|
MinSize 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfndsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|