Skip to content

Commit b277355

Browse files
CCM-10257: Implement Eventpub in Core
1 parent 6ffeb0b commit b277355

2 files changed

Lines changed: 37 additions & 27 deletions

File tree

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
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"
44

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
1111

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"))
1414

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+
# }
2121

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+
# }
3030

31-
depends_on = [ null_resource.lambda_zip ]
32-
}
31+
# depends_on = [ null_resource.lambda_zip ]
32+
# }
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "null_resource" "lambda_test" {
2+
triggers = {
3+
always_run = timestamp()
4+
}
5+
provisioner "local-exec" {
6+
command = <<EOT
7+
pwd
8+
EOT
9+
}
10+
}

0 commit comments

Comments
 (0)