@cfn-modules/lambda-function
Advanced tools
+17
-17
@@ -57,11 +57,11 @@ --- | ||
| AllowedValues: [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653] | ||
| DependencyModule1: | ||
| ModuleDependency1: | ||
| Description: 'Optional stack name of module implementing LambdaDependency.' | ||
| Type: String | ||
| Default: '' | ||
| DependencyModule2: | ||
| ModuleDependency2: | ||
| Description: 'Optional stack name of module implementing LambdaDependency.' | ||
| Type: String | ||
| Default: '' | ||
| DependencyModule3: | ||
| ModuleDependency3: | ||
| Description: 'Optional stack name of module implementing LambdaDependency.' | ||
@@ -75,6 +75,6 @@ Type: String | ||
| HasVpcModule: !Not [!Equals [!Ref VpcModule, '']] | ||
| HasDependencyModule1: !Not [!Equals [!Ref DependencyModule1, '']] | ||
| HasDependencyModule2: !Not [!Equals [!Ref DependencyModule2, '']] | ||
| HasDependencyModule3: !Not [!Equals [!Ref DependencyModule3, '']] | ||
| HasDependencyModules: !Or [!Condition HasDependencyModule1, !Condition HasDependencyModule2, !Condition HasDependencyModule3] | ||
| HasModuleDependency1: !Not [!Equals [!Ref ModuleDependency1, '']] | ||
| HasModuleDependency2: !Not [!Equals [!Ref ModuleDependency2, '']] | ||
| HasModuleDependency3: !Not [!Equals [!Ref ModuleDependency3, '']] | ||
| HasModuleDependencies: !Or [!Condition HasModuleDependency1, !Condition HasModuleDependency2, !Condition HasModuleDependency3] | ||
| Resources: | ||
@@ -94,3 +94,3 @@ Role: | ||
| Policies: !If | ||
| - HasDependencyModules | ||
| - HasModuleDependencies | ||
| - - PolicyName: 'cfn-modules' | ||
@@ -105,18 +105,18 @@ PolicyDocument: | ||
| - !If | ||
| - HasDependencyModule1 | ||
| - HasModuleDependency1 | ||
| - Effect: Allow | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule1}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule1}-IamResources'}] | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency1}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency1}-IamResources'}] | ||
| - !Ref 'AWS::NoValue' | ||
| - !If | ||
| - HasDependencyModule2 | ||
| - HasModuleDependency2 | ||
| - Effect: Allow | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule2}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule2}-IamResources'}] | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency2}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency2}-IamResources'}] | ||
| - !Ref 'AWS::NoValue' | ||
| - !If | ||
| - HasDependencyModule3 | ||
| - HasModuleDependency3 | ||
| - Effect: Allow | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule3}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${DependencyModule3}-IamResources'}] | ||
| Action: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency3}-IamActions'}] | ||
| Resource: !Split [',', {'Fn::ImportValue': !Sub '${ModuleDependency3}-IamResources'}] | ||
| - !Ref 'AWS::NoValue' | ||
@@ -123,0 +123,0 @@ - !Ref 'AWS::NoValue' |
+1
-1
| { | ||
| "name": "@cfn-modules/lambda-function", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "AWS Lambda function", | ||
@@ -5,0 +5,0 @@ "author": "Michael Wittig <michael@widdix.de>", |
7487
0.03%