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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTIzMTg5ZDM0ODI3MDg2MzdiMGFjM2ZmMTQ1MmUzNGU1MTQ2NTUyZQ==
4
+ MTEyMmRhYWYxYWNjZGU2Yzg2ZDc2MDMyZjFmZTA2YWI2MjZjNTczNw==
5
5
  data.tar.gz: !binary |-
6
- ZmZhODBlOWQ1NzJiNGI5OWVlNjUxYWU5Njg5OTc1YTE0ZDQ2ZjdkMw==
6
+ Nzc3MGU4Njg5NmVkNGExN2Q0OGVhZTIzMDBkNWQwNGM0ODM2ZmYwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2RhNmZhNmE0OTQxYmYxNzVlNGE5MDEwODkzNzQ4NDNjYjlkZjI1YjkxNzE4
10
- NjdiMzAyNmM4YjQ2MmEzYTA2YTQzMmVmZDczNzQ0MWRkN2EyZWZiM2U1OGFl
11
- MmUyODgzMjgyMDgyNWM0OWFjY2RmMDI4MGFhZGIxZWY2ZTM3Mjc=
9
+ MzcxNWEyOTA4Mzc5NzRlODYyZThkYzdkZmQ5NTI5MWVhOTIxNGI3NDViOTFi
10
+ MjZjYWE4OGE2MjMxYTM1NmQ5NzZjMzNlYjNmNWU2MjlmZDE5YjUyYzQ3ZDg2
11
+ NTg2ZjdjYjI2NWM5YzA4NDk4ZWRhY2U5YzllNWUzN2YyNDlmZTI=
12
12
  data.tar.gz: !binary |-
13
- NDZjY2JiNTgyZWNkMjNjNmNiOGFlNmZkNDM1ZDM3NzU4ZjI3NDhhY2QwZDgy
14
- Y2Y1YjQ3YmQ2ZDViMDllNjM4MTRiZWY3YWYyZGU4YjBkY2VmYTMzMTdkNjU1
15
- MzE2YjYxMTVhNzQ2NmY2OGYyMmFlMTdmOWJjNWRhOTdkYjI0NzA=
13
+ OTk1ZjQyN2VhMDhiMTBhYWUwMWMwMTViNGFlYzk1NzA1YTgwNzAyNDhhNjQ4
14
+ YzE4ZDY2MzY2ODAxYTJlODFjNjkxNmQ1NGVhNzAyMWE2ZjI1NTBlYjk5NGI0
15
+ YTk0ZmU3MDFhMTg2MmQ1MjAyNjNmYzdlMDFiZjVmYzQ5N2FkMDQ=
@@ -212,7 +212,7 @@ Resources:
212
212
  SourceDestCheck: Boolean
213
213
  SubnetId: String
214
214
  Tags: [ EC2Tag ]
215
- Tenancey: String
215
+ Tenancy: String
216
216
  UserData: String
217
217
  Volumes: [ EC2MountPoint ]
218
218
  Attributes:
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.8.6'.freeze
2
+ VERSION = '0.8.7'.freeze
3
3
  end
@@ -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
@@ -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
@@ -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',
@@ -54,7 +54,8 @@ CloudFormation do
54
54
  ManagedPolicyArns(
55
55
  [
56
56
  'arn:aws:iam::aws:policy/service-role/AWSConfigRole'
57
- ])
57
+ ]
58
+ )
58
59
  end
59
60
 
60
61
  Topic('ConfigServiceTopic') do
@@ -11,8 +11,7 @@ CloudFormation do
11
11
  Property('Role', Ref('Role'))
12
12
  Property('Code',
13
13
  S3Bucket: 'lambda-functions',
14
- S3Key: 'amilookup.zip'
15
- )
14
+ S3Key: 'amilookup.zip')
16
15
  Property('Runtime', 'nodejs')
17
16
  Property('Timeout', '25')
18
17
  end
@@ -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.6
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-05-05 00:00:00.000000000 Z
12
+ date: 2016-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler