@cfn-modules/lambda-function
Advanced tools
| name: CI | ||
| on: push | ||
| jobs: | ||
| build: | ||
| runs-on: 'ubuntu-latest' | ||
| steps: | ||
| - uses: 'actions/checkout@v2' | ||
| - uses: 'actions/setup-python@v2' | ||
| with: | ||
| python-version: '3.8' | ||
| - name: yamlllint | ||
| run: | | ||
| pip install yamllint==1.24.2 | ||
| yamllint module.yml && yamllint test/*.yml | ||
| - name: cfn-lint | ||
| run: | | ||
| pip install cfn-lint==0.34.0 | ||
| cfn-lint -i W3002 -t module.yml && cfn-lint -t test/*.yml | ||
| - name: license | ||
| run: | | ||
| grep -q "LICENSE-2.0" module.yml |
+12
-2
@@ -73,3 +73,3 @@ --- | ||
| Type: String | ||
| AllowedValues: ['nodejs12.x', 'nodejs10.x', 'nodejs8.10', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x'] | ||
| AllowedValues: ['nodejs12.x', 'nodejs10.x', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x'] | ||
| Timeout: | ||
@@ -114,2 +114,10 @@ Description: 'The function execution time at which Lambda should terminate the function' | ||
| Default: '' | ||
| EnvironmentVariable4: | ||
| Description: 'Optional value of environment variable VARIABLE4' | ||
| Type: String | ||
| Default: '' | ||
| EnvironmentVariable5: | ||
| Description: 'Optional value of environment variable VARIABLE5' | ||
| Type: String | ||
| Default: '' | ||
| ManagedPolicyArns: | ||
@@ -240,2 +248,4 @@ Description: 'Optional comma-delimited list of IAM managed policy ARNs to attach to the function''s IAM role' | ||
| VARIABLE3: !Ref EnvironmentVariable3 | ||
| VARIABLE4: !Ref EnvironmentVariable4 | ||
| VARIABLE5: !Ref EnvironmentVariable5 | ||
| DEPENDENCY1_ARN: !If [HasDependencyModule1, {'Fn::ImportValue': !Sub '${DependencyModule1}-Arn'}, ''] | ||
@@ -308,3 +318,3 @@ DEPENDENCY2_ARN: !If [HasDependencyModule2, {'Fn::ImportValue': !Sub '${DependencyModule2}-Arn'}, ''] | ||
| ModuleVersion: | ||
| Value: '2.6.0' | ||
| Value: '2.7.0' | ||
| StackName: | ||
@@ -311,0 +321,0 @@ Value: !Ref 'AWS::StackName' |
+1
-1
| { | ||
| "name": "@cfn-modules/lambda-function", | ||
| "version": "2.6.0", | ||
| "version": "2.7.0", | ||
| "description": "AWS Lambda function with automated IAM policy generation, encryption, log group and alerting", | ||
@@ -5,0 +5,0 @@ "author": "Michael Wittig <michael@widdix.de>", |
+20
-7
@@ -1,4 +0,1 @@ | ||
| [](https://travis-ci.org/cfn-modules/lambda-function) | ||
| [](https://www.npmjs.com/package/@cfn-modules/lambda-function) | ||
| # cfn-modules: AWS Lambda function | ||
@@ -50,2 +47,4 @@ | ||
| EnvironmentVariable3: '' # optional | ||
| EnvironmentVariable4: '' # optional | ||
| EnvironmentVariable5: '' # optional | ||
| ManagedPolicyArns: '' # optional | ||
@@ -158,3 +157,3 @@ LayerArns: '' # optional | ||
| <td>no</td> | ||
| <td>['nodejs12.x', 'nodejs10.x', 'nodejs8.10', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x']</td> | ||
| <td>['nodejs12.x', 'nodejs10.x', 'python3.8', 'python3.7', 'python3.6', 'python2.7', 'ruby2.5', 'java11', 'java8', 'dotnetcore2.1', 'go1.x']</td> | ||
| </tr> | ||
@@ -225,2 +224,16 @@ <tr> | ||
| <tr> | ||
| <td>EnvironmentVariable4</td> | ||
| <td>Optional value of environment variable `VARIABLE4`</td> | ||
| <td></td> | ||
| <td>no</td> | ||
| <td></td> | ||
| </tr> | ||
| <tr> | ||
| <td>EnvironmentVariable5</td> | ||
| <td>Optional value of environment variable `VARIABLE5`</td> | ||
| <td></td> | ||
| <td>no</td> | ||
| <td></td> | ||
| </tr> | ||
| <tr> | ||
| <td>ManagedPolicyArns</td> | ||
@@ -241,3 +254,3 @@ <td>Comma-delimited list of IAM managed policy ARNs to attach to the task's IAM role</td> | ||
| <td>ClientSgModule1</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> module to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td></td> | ||
@@ -249,3 +262,3 @@ <td>no</td> | ||
| <td>ClientSgModule2</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> module to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td></td> | ||
@@ -257,3 +270,3 @@ <td>no</td> | ||
| <td>ClientSgModule3</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> module to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td>Stack name of <a href="https://www.npmjs.com/package/@cfn-modules/client-sg">client-sg module</a> to mark traffic from Lambda function (requires VpcModule parameter)</td> | ||
| <td></td> | ||
@@ -260,0 +273,0 @@ <td>no</td> |
+10
-3
| { | ||
| "private": true, | ||
| "dependencies": { | ||
| "eslint": "6.6.0", | ||
| "ava": "2.4.0", | ||
| "eslint": "7.6.0", | ||
| "ava": "3.11.1", | ||
| "@cfn-modules/test": "0.7.3", | ||
| "@cfn-modules/s3-bucket": "1.5.0", | ||
| "@cfn-modules/s3-bucket": "1.6.0", | ||
| "@cfn-modules/lambda-function": "file:../" | ||
@@ -12,3 +12,10 @@ }, | ||
| "test": "eslint . && ava -c 4 *.js" | ||
| }, | ||
| "ava": { | ||
| "files": [ | ||
| "*.js" | ||
| ], | ||
| "concurrency": 4, | ||
| "timeout": "2h" | ||
| } | ||
| } |
-11
| --- | ||
| language: python | ||
| python: | ||
| - '2.7' | ||
| install: | ||
| - 'pip install yamllint==1.19.0' | ||
| - 'pip install cfn-lint==0.25.3' | ||
| script: | ||
| - 'yamllint module.yml' | ||
| - 'cfn-lint -i W3002 -t module.yml' | ||
| - 'grep -q "LICENSE-2.0" module.yml' |
Sorry, the diff of this file is too big to display
279
4.89%156584
-18.85%2900
-25.22%