|
1 | | -resource "aws_lambda_function" "main" { |
2 | | - function_name = local.csi |
3 | | - description = "Event forwarding function" |
| 1 | +# resource "aws_lambda_function" "main" { |
| 2 | +# function_name = local.csi |
| 3 | +# description = "Event forwarding function" |
4 | 4 |
|
5 | | - role = aws_iam_role.lambda.arn |
6 | | - handler = "index.handler" |
7 | | - runtime = "nodejs20.x" #change to nodejs22.x once core update done |
8 | | - publish = true |
9 | | - memory_size = 128 |
10 | | - timeout = 20 |
| 5 | +# role = aws_iam_role.lambda.arn |
| 6 | +# handler = "index.handler" |
| 7 | +# runtime = "nodejs20.x" #change to nodejs22.x once core update done |
| 8 | +# publish = true |
| 9 | +# memory_size = 128 |
| 10 | +# timeout = 20 |
11 | 11 |
|
12 | | - filename = "${path.module}/lambda/eventpub/eventpub.zip" |
13 | | - source_code_hash = base64encode(filesha256("${path.module}/lambda/eventpub/eventpub.zip")) |
| 12 | +# filename = "${path.module}/lambda/eventpub/eventpub.zip" |
| 13 | +# source_code_hash = base64encode(filesha256("${path.module}/lambda/eventpub/eventpub.zip")) |
14 | 14 |
|
15 | | - logging_config { |
16 | | - application_log_level = var.log_level |
17 | | - log_format = "JSON" |
18 | | - log_group = aws_cloudwatch_log_group.lambda.name |
19 | | - system_log_level = var.log_level |
20 | | - } |
| 15 | +# logging_config { |
| 16 | +# application_log_level = var.log_level |
| 17 | +# log_format = "JSON" |
| 18 | +# log_group = aws_cloudwatch_log_group.lambda.name |
| 19 | +# system_log_level = var.log_level |
| 20 | +# } |
21 | 21 |
|
22 | | - environment { |
23 | | - variables = { |
24 | | - DATA_PLANE_EVENT_BUS_ARN = var.data_plane_bus_arn |
25 | | - CONTROL_PLANE_EVENT_BUS_ARN = var.control_plane_bus_arn |
26 | | - DLQ_URL = aws_sqs_queue.dlq.url |
27 | | - THROTTLE_DELAY_MS = "0" |
28 | | - } |
29 | | - } |
| 22 | +# environment { |
| 23 | +# variables = { |
| 24 | +# DATA_PLANE_EVENT_BUS_ARN = var.data_plane_bus_arn |
| 25 | +# CONTROL_PLANE_EVENT_BUS_ARN = var.control_plane_bus_arn |
| 26 | +# DLQ_URL = aws_sqs_queue.dlq.url |
| 27 | +# THROTTLE_DELAY_MS = "0" |
| 28 | +# } |
| 29 | +# } |
30 | 30 |
|
31 | | - depends_on = [ null_resource.lambda_zip ] |
32 | | -} |
| 31 | +# depends_on = [ null_resource.lambda_zip ] |
| 32 | +# } |
0 commit comments