@cfn-modules/lambda-function
Advanced tools
+5
-2
@@ -158,3 +158,6 @@ --- | ||
| Environment: | ||
| Variables: {} # TODO how to handle this? Seems to be impossible... | ||
| Variables: # TODO how to handle this? Seems to be impossible... | ||
| DEPENDENCY1_ARN: !If [HasModuleDependency1, {'Fn::ImportValue': !Sub '${ModuleDependency1}-Arn'}, ''] | ||
| DEPENDENCY2_ARN: !If [HasModuleDependency2, {'Fn::ImportValue': !Sub '${ModuleDependency2}-Arn'}, ''] | ||
| DEPENDENCY3_ARN: !If [HasModuleDependency3, {'Fn::ImportValue': !Sub '${ModuleDependency3}-Arn'}, ''] | ||
| FunctionName: !Ref 'AWS::StackName' | ||
@@ -226,3 +229,3 @@ Handler: !Ref Handler | ||
| ModuleVersion: | ||
| Value: '0.0.8' | ||
| Value: '0.0.9' | ||
| StackName: | ||
@@ -229,0 +232,0 @@ Value: !Ref 'AWS::StackName' |
+2
-2
| { | ||
| "name": "@cfn-modules/lambda-function", | ||
| "version": "0.0.8", | ||
| "description": "AWS Lambda function with automated IAM policy generation, log group and alerting", | ||
| "version": "0.0.9", | ||
| "description": "AWS Lambda function with automated IAM policy generation, encryption, log group and alerting", | ||
| "author": "Michael Wittig <michael@widdix.de>", | ||
| "license": "Apache-2.0" | ||
| } |
+4
-2
| # cfn-modules: AWS Lambda function | ||
| AWS Lambda function with automated IAM policy generation, log group and [alerting](https://www.npmjs.com/package/@cfn-modules/alerting). | ||
| AWS Lambda function with automated IAM policy generation, encryption, log group and [alerting](https://www.npmjs.com/package/@cfn-modules/alerting). | ||
@@ -15,4 +15,6 @@ ## Install | ||
| > The lambda source code must be in the folder `lambdas`! | ||
| > The lambda source code must be in the folder `lambdas`. | ||
| > If you pass in a module dependency (e.g. `ModuleDependency1`), the environment variable `DEPENDENCY1_ARN` inside the Lambda function will contain the ARN of the dependency. | ||
| ``` | ||
@@ -19,0 +21,0 @@ --- |
15136
3.65%174
1.16%