You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-7
Original file line number
Diff line number
Diff line change
@@ -240,12 +240,13 @@ module "vpc" {
240
240
241
241
## Additional IAM policies for Lambda Functions
242
242
243
-
There are 4 supported ways to attach IAM policies to IAM role used by Lambda Function:
243
+
There are 5 supported ways to attach IAM policies to IAM role used by Lambda Function:
244
244
245
-
1.`policy_json` - set as JSON string or heredoc, when `attach_policy_json = true`.
245
+
1.`policy_json` - JSON string or heredoc, when `attach_policy_json = true`.
246
+
1.`policy_jsons` - List of JSON strings or heredoc, when `attach_policy_jsons = true` and `number_of_policy_jsons > 0`.
246
247
1.`policy` - ARN of existing IAM policy, when `attach_policy = true`.
247
-
1.`policies` - List of ARNs of existing IAM policies, when `attach_policies = true`.
248
-
1.`policy_statements` - Map of maps to define IAM statements which will be generated as IAM policy. Requires `attach_policy_statements = true`. See examples/complete for more information.
248
+
1.`policies` - List of ARNs of existing IAM policies, when `attach_policies = true` and `number_of_policies > 0`.
249
+
1.`policy_statements` - Map of maps to define IAM statements which will be generated as IAM policy. Requires `attach_policy_statements = true`. See `examples/complete` for more information.
249
250
250
251
251
252
## Lambda Permissions for allowed triggers
@@ -557,15 +558,19 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
557
558
|------|---------|
558
559
| terraform | >= 0.12.6, < 0.14 |
559
560
| aws | >= 2.67, < 4.0 |
561
+
| external |~> 1 |
562
+
| local |~> 1 |
563
+
| null |~> 2 |
564
+
| random |~> 2 |
560
565
561
566
## Providers
562
567
563
568
| Name | Version |
564
569
|------|---------|
565
570
| aws | >= 2.67, < 4.0 |
566
-
| external |n/a|
567
-
| local |n/a|
568
-
| null |n/a|
571
+
| external |~> 1|
572
+
| local |~> 1|
573
+
| null |~> 2|
569
574
570
575
## Inputs
571
576
@@ -580,6 +585,7 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
580
585
| attach\_policies | Controls whether list of policies should be added to IAM role for Lambda Function |`bool`|`false`| no |
581
586
| attach\_policy | Controls whether policy should be added to IAM role for Lambda Function |`bool`|`false`| no |
582
587
| attach\_policy\_json | Controls whether policy\_json should be added to IAM role for Lambda Function |`bool`|`false`| no |
588
+
| attach\_policy\_jsons | Controls whether policy\_jsons should be added to IAM role for Lambda Function |`bool`|`false`| no |
583
589
| attach\_policy\_statements | Controls whether policy\_statements should be added to IAM role for Lambda Function |`bool`|`false`| no |
584
590
| attach\_tracing\_policy | Controls whether X-Ray tracing policy should be added to IAM role for Lambda Function |`bool`|`false`| no |
585
591
| build\_in\_docker | Whether to build dependencies in Docker |`bool`|`false`| no |
@@ -623,9 +629,11 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
623
629
| maximum\_retry\_attempts | Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. |`number`|`null`| no |
624
630
| memory\_size | Amount of memory in MB your Lambda Function can use at runtime. Valid value between 128 MB to 3008 MB, in 64 MB increments. |`number`|`128`| no |
625
631
| number\_of\_policies | Number of policies to attach to IAM role for Lambda Function |`number`|`0`| no |
632
+
| number\_of\_policy\_jsons | Number of policies JSON to attach to IAM role for Lambda Function |`number`|`0`| no |
626
633
| policies | List of policy statements ARN to attach to Lambda Function role |`list(string)`|`[]`| no |
627
634
| policy | An additional policy document ARN to attach to the Lambda Function role |`string`|`null`| no |
628
635
| policy\_json | An additional policy document as JSON to attach to the Lambda Function role |`string`|`null`| no |
636
+
| policy\_jsons | List of additional policy documents as JSON to attach to Lambda Function role |`list(string)`|`[]`| no |
629
637
| policy\_statements | Map of dynamic policy statements to attach to Lambda Function role |`any`|`{}`| no |
630
638
| provisioned\_concurrent\_executions | Amount of capacity to allocate. Set to 1 or greater to enable, or set to 0 to disable provisioned concurrency. |`number`|`-1`| no |
631
639
| publish | Whether to publish creation/change as new Lambda Function Version. |`bool`|`false`| no |
0 commit comments