Skip to content

Commit 4af2b10

Browse files
feat: Add vpc_config
1 parent 36c871f commit 4af2b10

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ module "observe_collection" {
146146
| <a name="input_lambda_subscribe_logs"></a> [lambda\_subscribe\_logs](#input\_lambda\_subscribe\_logs) | Whether to subscribe to the Lambda function's logs and deliver them from CloudWatch to Observe via Kinesis Firehose. | `bool` | `true` | no |
147147
| <a name="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout) | The amount of time that Lambda allows a function to run before stopping it.<br>The maximum allowed value is 900 seconds. | `number` | `120` | no |
148148
| <a name="input_lambda_version"></a> [lambda\_version](#input\_lambda\_version) | Lambda version | `string` | `"arm64/latest"` | no |
149+
| <a name="input_lambda_vpc_config"></a> [lambda\_vpc\_config](#input\_lambda\_vpc\_config) | VPC configuration for Lambda function | <pre>object({<br> security_groups = list(object({<br> id = string<br> }))<br> subnets = list(object({<br> arn = string<br> id = string<br> }))<br> })</pre> | `null` | no |
149150
| <a name="input_log_subscription_name"></a> [log\_subscription\_name](#input\_log\_subscription\_name) | Name for log subscription resources to be created | `string` | `null` | no |
150151
| <a name="input_name"></a> [name](#input\_name) | Name for resources to be created | `string` | `"observe-collection"` | no |
151152
| <a name="input_observe_customer"></a> [observe\_customer](#input\_observe\_customer) | Observe Customer ID | `string` | n/a | yes |

lambda.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "observe_lambda" {
1919
kms_key = var.lambda_kms_key
2020
retention_in_days = var.retention_in_days
2121
dead_letter_queue_destination = var.dead_letter_queue_destination
22+
vpc_config = var.lambda_vpc_config
2223
}
2324

2425
module "observe_lambda_snapshot" {

variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@ variable "dead_letter_queue_destination" {
135135
description = "Send failed events/function executions to a dead letter queue arn sns or sqs"
136136
}
137137

138+
variable "lambda_vpc_config" {
139+
description = "VPC configuration for Lambda function"
140+
type = object({
141+
security_groups = list(object({
142+
id = string
143+
}))
144+
subnets = list(object({
145+
arn = string
146+
id = string
147+
}))
148+
})
149+
nullable = true
150+
default = null
151+
}
152+
138153
variable "subscribed_s3_bucket_arns" {
139154
description = "List of additional S3 bucket ARNs to subscribe lambda to."
140155
type = list(string)

0 commit comments

Comments
 (0)