Skip to content

Commit 080f961

Browse files
committed
modified additional_lambda policy
1 parent b637c7e commit 080f961

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Terraform module for creating the lambda and the github actions IAM Role deploye
4141

4242
| Name | Description | Type | Default | Required |
4343
|------|-------------|------|---------|:--------:|
44-
| <a name="input_additional_lambda_policy"></a> [additional\_lambda\_policy](#input\_additional\_lambda\_policy) | List of additional policies for the lambda execution | `list(string)` | `[]` | no |
45-
| <a name="input_additional_lambda_policy_statements"></a> [additional\_lambda\_policy\_statements](#input\_additional\_lambda\_policy\_statements) | Additional Inline Lambda Policy Statements | `any` | `{}` | no |
4644
| <a name="input_allowed_triggers"></a> [allowed\_triggers](#input\_allowed\_triggers) | Map of allowed triggers to create Lambda permissions | `map(any)` | `{}` | no |
4745
| <a name="input_architectures"></a> [architectures](#input\_architectures) | Instruction set architecture for your Lambda function. Valid values are ["x86\_64"] and ["arm64"]. | `list(string)` | `null` | no |
4846
| <a name="input_attach_network_policy"></a> [attach\_network\_policy](#input\_attach\_network\_policy) | Flag to attach network policy to use VPC subnet and security group | `bool` | `false` | no |
@@ -74,6 +72,8 @@ Terraform module for creating the lambda and the github actions IAM Role deploye
7472
| <a name="input_layers"></a> [layers](#input\_layers) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. | `list(string)` | `null` | no |
7573
| <a name="input_memory_size"></a> [memory\_size](#input\_memory\_size) | Amount of memory in MB your Lambda Function can use at runtime. Valid value between 128 MB to 10,240 MB (10 GB), in 64 MB increments. | `number` | `128` | no |
7674
| <a name="input_package_type"></a> [package\_type](#input\_package\_type) | The Lambda deployment package type. Valid options: Zip or Image | `string` | `"Zip"` | no |
75+
| <a name="input_policy_jsons"></a> [policy\_jsons](#input\_policy\_jsons) | List of additional policies for the lambda execution | `list(string)` | `[]` | no |
76+
| <a name="input_policy_statements"></a> [policy\_statements](#input\_policy\_statements) | Additional Inline Lambda Policy Statements | `any` | `{}` | no |
7777
| <a name="input_publish"></a> [publish](#input\_publish) | Whether to publish creation/change as new Lambda Function Version. | `bool` | `false` | no |
7878
| <a name="input_reserved_concurrent_executions"></a> [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions) | The amount of reserved concurrent executions for this Lambda Function. A value of 0 disables Lambda Function from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. | `number` | `-1` | no |
7979
| <a name="input_role_name"></a> [role\_name](#input\_role\_name) | Name of IAM role to use for Lambda Function. | `string` | `null` | no |

main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module "lambda" {
5858

5959
# dummy package, package is delegated to CI pipeline
6060
local_existing_package = data.archive_file.dummy.output_path
61-
policy_jsons = var.additional_lambda_policy
62-
policy_statements = var.additional_lambda_policy_statements
61+
policy_jsons = var.policy_jsons
62+
policy_statements = var.policy_statements
6363

6464
}

variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ variable "function_prefix" {
238238
default = ""
239239
}
240240

241-
variable "additional_lambda_policy" {
241+
variable "policy_jsons" {
242242
description = "List of additional policies for the lambda execution"
243243
type = list(string)
244244
default = []
245245
}
246246

247-
variable "additional_lambda_policy_statements" {
247+
variable "policy_statements" {
248248
description = "Additional Inline Lambda Policy Statements"
249249
type = any
250250
default = {}

0 commit comments

Comments
 (0)