diff --git a/stacks/gp-registrations-mi/terraform/error-alarm-alert-lambda.tf b/stacks/gp-registrations-mi/terraform/error-alarm-alert-lambda.tf index a506bcb..acc5b16 100644 --- a/stacks/gp-registrations-mi/terraform/error-alarm-alert-lambda.tf +++ b/stacks/gp-registrations-mi/terraform/error-alarm-alert-lambda.tf @@ -3,7 +3,7 @@ variable "error_alarm_alert_lambda_name" { } resource "aws_lambda_function" "error_alarm_alert_lambda" { - filename = "${path.cwd}/${var.error_alarm_alert_lambda_zip}" + filename = var.error_alarm_alert_lambda_zip function_name = "${var.environment}-${var.error_alarm_alert_lambda_name}" role = aws_iam_role.error_alarm_alert_lambda_role.arn handler = "error_alarm_alert_main.lambda_handler" diff --git a/stacks/gp-registrations-mi/terraform/event-enrichment-lambda.tf b/stacks/gp-registrations-mi/terraform/event-enrichment-lambda.tf index 268597e..dbf5db1 100644 --- a/stacks/gp-registrations-mi/terraform/event-enrichment-lambda.tf +++ b/stacks/gp-registrations-mi/terraform/event-enrichment-lambda.tf @@ -3,7 +3,7 @@ variable "event_enrichment_lambda_name" { } resource "aws_lambda_function" "event_enrichment_lambda" { - filename = "${path.cwd}/${var.event_enrichment_lambda_zip}" + filename = var.event_enrichment_lambda_zip function_name = "${var.environment}-${var.event_enrichment_lambda_name}" role = aws_iam_role.event_enrichment_lambda_role.arn handler = "event_enrichment_main.lambda_handler" diff --git a/stacks/gp-registrations-mi/terraform/s3-event-uploader-lambda.tf b/stacks/gp-registrations-mi/terraform/s3-event-uploader-lambda.tf index 1648f6b..9da2104 100644 --- a/stacks/gp-registrations-mi/terraform/s3-event-uploader-lambda.tf +++ b/stacks/gp-registrations-mi/terraform/s3-event-uploader-lambda.tf @@ -3,7 +3,7 @@ variable "s3_event_uploader_lambda_name" { } resource "aws_lambda_function" "s3_event_uploader_lambda" { - filename = "${path.cwd}/${var.s3_event_uploader_lambda_zip}" + filename = var.s3_event_uploader_lambda_zip function_name = "${var.environment}-${var.s3_event_uploader_lambda_name}" role = aws_iam_role.s3_event_uploader_role.arn handler = "s3_event_uploader_main.lambda_handler" diff --git a/stacks/gp-registrations-mi/terraform/splunk-cloud-event-uploader-lambda.tf b/stacks/gp-registrations-mi/terraform/splunk-cloud-event-uploader-lambda.tf index 17edfc9..564a596 100644 --- a/stacks/gp-registrations-mi/terraform/splunk-cloud-event-uploader-lambda.tf +++ b/stacks/gp-registrations-mi/terraform/splunk-cloud-event-uploader-lambda.tf @@ -3,7 +3,7 @@ variable "splunk_cloud_event_uploader_lambda_name" { } resource "aws_lambda_function" "splunk_cloud_event_uploader_lambda" { - filename = "${path.cwd}/${var.splunk_cloud_event_uploader_lambda_zip}" + filename = var.splunk_cloud_event_uploader_lambda_zip function_name = "${var.environment}-${var.splunk_cloud_event_uploader_lambda_name}" role = aws_iam_role.splunk_cloud_event_uploader_lambda_role.arn handler = "splunk_cloud_event_uploader_main.lambda_handler"