Skip to content

Commit 46050ed

Browse files
support all runtimes (#30)
1 parent e8306e0 commit 46050ed

7 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
- name: yamlllint
1818
run: |
19-
pip install yamllint==1.24.2
19+
pip install yamllint==1.26.0
2020
yamllint module.yml && yamllint test/*.yml
2121
2222
- name: cfn-lint
2323
run: |
24-
pip install cfn-lint==0.40.0
24+
pip install cfn-lint==0.44.7
2525
cfn-lint -i W3002 -t module.yml && cfn-lint -t test/*.yml
2626
2727
- name: license

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Resources:
3434
Handler: 'example.handler' # required (file must be in the `lambda-src` folder)
3535
MemorySize: '128' # optional
3636
ReservedConcurrentExecutions: '-1' # optional
37-
Runtime: 'nodejs12.x' # required
37+
Runtime: 'nodejs14.x' # required
3838
Timeout: '3' # optional
3939
TracingConfigMode: PassThrough # optional
4040
LogGroupRetentionInDays: '14' # optional
@@ -153,7 +153,7 @@ Resources:
153153
<td>The runtime environment for the Lambda function that you are uploading</td>
154154
<td></td>
155155
<td>no</td>
156-
<td>['nodejs12.x', 'nodejs10.x', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x']</td>
156+
<td>See <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime">Runtime doc</a></td>
157157
</tr>
158158
<tr>
159159
<td>Timeout</td>

module.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Parameters:
7070
Runtime:
7171
Description: 'The runtime environment for the Lambda function that you are uploading'
7272
Type: String
73-
AllowedValues: ['nodejs12.x', 'nodejs10.x', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x']
7473
Timeout:
7574
Description: 'The function execution time at which Lambda should terminate the function'
7675
Type: Number
@@ -320,7 +319,7 @@ Outputs:
320319
ModuleId:
321320
Value: 'lambda-function'
322321
ModuleVersion:
323-
Value: '2.8.0'
322+
Value: '2.9.0'
324323
StackName:
325324
Value: !Ref 'AWS::StackName'
326325
Arn:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cfn-modules/lambda-function",
3-
"version": "2.8.0",
3+
"version": "2.9.0",
44
"description": "AWS Lambda function with automated IAM policy generation, encryption, log group and alerting",
55
"author": "Michael Wittig <michael@widdix.de>",
66
"license": "Apache-2.0",

test/defaults.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Resources:
77
Properties:
88
Parameters:
99
Handler: 'defaults.handler'
10-
Runtime: 'nodejs12.x'
10+
Runtime: 'nodejs14.x'
1111
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'

test/layer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Resources:
1818
Properties:
1919
Parameters:
2020
Handler: 'defaults.handler'
21-
Runtime: 'nodejs12.x'
21+
Runtime: 'nodejs14.x'
2222
LayerArns: !Ref Layer
2323
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'

test/named.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Resources:
77
Properties:
88
Parameters:
99
Handler: 'defaults.handler'
10-
Runtime: 'nodejs12.x'
10+
Runtime: 'nodejs14.x'
1111
FunctionName: 'NamedLambda'
1212
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'

0 commit comments

Comments
 (0)