cfn-model 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfn-model/transforms/serverless.rb +5 -0
- metadata +51 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36ad8068b8a22556bbcfa227568544fe045f809e5d3fc32be33bd87682de8e44
|
4
|
+
data.tar.gz: 067332f14d8ff714fcff7161871f1b4d7198efdfda05f5462c0e6558e8c2d587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28bedd978945aa74ad25947c792b4e851b4902165b7cee05bd8b0109ad73470b48cb374eca11106c56063ff0b5e1b50432e7d6a80d4a07cf03e4ed0d7076f38
|
7
|
+
data.tar.gz: 46951dafa2d6927b240d23309dc25a7f26914ed9b15b5d59908517738fc3c1b5fbafd3a6cbc42d150e84895e1fb483556d9c0ebf8991d7c8a63c97a21602e4d0
|
@@ -93,6 +93,7 @@ class CfnModel
|
|
93
93
|
handler: serverless_function_property(serverless_function, cfn_hash, 'Handler'),
|
94
94
|
role: format_function_role(serverless_function, fn_name),
|
95
95
|
runtime: serverless_function_property(serverless_function, cfn_hash, 'Runtime'),
|
96
|
+
reserved_concurrent_executions: serverless_function_property(serverless_function, cfn_hash, 'ReservedConcurrentExecutions'),
|
96
97
|
with_line_numbers: with_line_numbers
|
97
98
|
}
|
98
99
|
|
@@ -118,6 +119,7 @@ class CfnModel
|
|
118
119
|
code_key: lambda_fn_params[:code_key],
|
119
120
|
role: lambda_fn_params[:role],
|
120
121
|
runtime: lambda_fn_params[:runtime],
|
122
|
+
reserved_concurrent_executions: lambda_fn_params[:reserved_concurrent_executions],
|
121
123
|
with_line_numbers: lambda_fn_params[:with_line_numbers]
|
122
124
|
)
|
123
125
|
unless serverless_function['Properties']['Role']
|
@@ -223,6 +225,7 @@ class CfnModel
|
|
223
225
|
code_key: nil,
|
224
226
|
role:,
|
225
227
|
runtime:,
|
228
|
+
reserved_concurrent_executions:,
|
226
229
|
with_line_numbers: false)
|
227
230
|
fn_resource = {
|
228
231
|
'Type' => format_resource_type('AWS::Lambda::Function', -1, with_line_numbers),
|
@@ -232,6 +235,8 @@ class CfnModel
|
|
232
235
|
'Runtime' => runtime
|
233
236
|
}
|
234
237
|
}
|
238
|
+
fn_resource['Properties']['ReservedConcurrentExecutions'] = reserved_concurrent_executions unless reserved_concurrent_executions.nil?
|
239
|
+
|
235
240
|
lambda_function_code(fn_resource, code_bucket, code_key)
|
236
241
|
end
|
237
242
|
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kascic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.4'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: rubocop
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +52,20 @@ dependencies:
|
|
24
52
|
- - ">="
|
25
53
|
- !ruby/object:Gem::Version
|
26
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.11'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.11'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: kwalify
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +95,7 @@ dependencies:
|
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: '3'
|
55
97
|
description: An object model for CloudFormation templates
|
56
|
-
email:
|
98
|
+
email:
|
57
99
|
executables:
|
58
100
|
- cfn_parse
|
59
101
|
extensions: []
|
@@ -151,10 +193,10 @@ licenses:
|
|
151
193
|
metadata:
|
152
194
|
bug_tracker_uri: https://github.com/stelligent/cfn-model/issues
|
153
195
|
changelog_uri: https://github.com/stelligent/cfn-model/releases
|
154
|
-
documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.
|
196
|
+
documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.2
|
155
197
|
homepage_uri: https://github.com/stelligent/cfn-model
|
156
|
-
source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.
|
157
|
-
post_install_message:
|
198
|
+
source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.2
|
199
|
+
post_install_message:
|
158
200
|
rdoc_options: []
|
159
201
|
require_paths:
|
160
202
|
- lib
|
@@ -170,9 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
212
|
- !ruby/object:Gem::Version
|
171
213
|
version: '0'
|
172
214
|
requirements: []
|
173
|
-
|
174
|
-
|
175
|
-
signing_key:
|
215
|
+
rubygems_version: 3.1.2
|
216
|
+
signing_key:
|
176
217
|
specification_version: 4
|
177
218
|
summary: cfn-model
|
178
219
|
test_files: []
|