Skip to content

Commit a29e5dc

Browse files
committed
move sg list inside vpc object on lambda vars
1 parent a90bfdf commit a29e5dc

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

infrastructure/terraform/modules/lambda-function/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ No requirements.
1919
| <a name="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days) | Specifies the number of days you want to retain log events in the log group for this Lambda | `number` | `0` | no |
2020
| <a name="input_memory_size"></a> [memory\_size](#input\_memory\_size) | Lambda memory size | `number` | `128` | no |
2121
| <a name="input_runtime"></a> [runtime](#input\_runtime) | Identifier of the function's runtime | `string` | `"nodejs20.x"` | no |
22-
| <a name="input_security_group_ids"></a> [security\_group\_ids](#input\_security\_group\_ids) | n/a | `list(string)` | `[]` | no |
2322
| <a name="input_source_code_hash"></a> [source\_code\_hash](#input\_source\_code\_hash) | Base64-encoded SHA256 hash of the package file specified by `filename` | `string` | n/a | yes |
2423
| <a name="input_sqs_event_source_mapping"></a> [sqs\_event\_source\_mapping](#input\_sqs\_event\_source\_mapping) | Configuration for SQS event source mapping | <pre>object({<br/> sqs_queue_arn = string<br/> batch_size = optional(number, 10)<br/> maximum_batching_window_in_seconds = optional(number, 0)<br/> scaling_config = optional(object({<br/> maximum_concurrency = number<br/> }), null)<br/> })</pre> | `null` | no |
2524
| <a name="input_timeout"></a> [timeout](#input\_timeout) | Maximum running time before timeout | `number` | `3` | no |
26-
| <a name="input_vpc"></a> [vpc](#input\_vpc) | VPC details | <pre>object({<br/> id = string<br/> cidr_block = string<br/> subnet_ids = set(string)<br/> })</pre> | `null` | no |
25+
| <a name="input_vpc"></a> [vpc](#input\_vpc) | VPC details | <pre>object({<br/> id = string<br/> cidr_block = string<br/> subnet_ids = set(string)<br/> security_group_ids = list(string)<br/> })</pre> | `null` | no |
2726
## Modules
2827

2928
No modules.

infrastructure/terraform/modules/lambda-function/variables.tf

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,14 @@ variable "dead_letter_target_arn" {
6868
variable "vpc" {
6969
description = "VPC details"
7070
type = object({
71-
id = string
72-
cidr_block = string
73-
subnet_ids = set(string)
71+
id = string
72+
cidr_block = string
73+
subnet_ids = set(string)
74+
security_group_ids = list(string)
7475
})
7576
default = null
7677
}
7778

78-
variable "security_group_ids" {
79-
type = list(string)
80-
default = []
81-
}
82-
8379
variable "sqs_event_source_mapping" {
8480
description = "Configuration for SQS event source mapping"
8581
type = object({

0 commit comments

Comments
 (0)