From ffa257688d28f59455c07256bdcafb076ded3356 Mon Sep 17 00:00:00 2001 From: matt-heery <116661071+matt-heery@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:17:16 +0000 Subject: [PATCH] correct output name --- .../electronic-monitoring-data/lambda_triggers.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/environments/electronic-monitoring-data/lambda_triggers.tf b/terraform/environments/electronic-monitoring-data/lambda_triggers.tf index 833e7ec6fe6..bb8493b13e4 100644 --- a/terraform/environments/electronic-monitoring-data/lambda_triggers.tf +++ b/terraform/environments/electronic-monitoring-data/lambda_triggers.tf @@ -4,7 +4,7 @@ resource "aws_sns_topic_subscription" "live_serco_fms_sns_subscription" { topic_arn = aws_sns_topic.live_serco_fms_s3_events.arn protocol = "sqs" - endpoint = module.format_json_fms_data.lambda_dlq_arn + endpoint = module.format_json_fms_data.lambda_function_dlq_arn } resource "aws_lambda_permission" "live_serco_fms_with_sns" { @@ -12,7 +12,7 @@ resource "aws_lambda_permission" "live_serco_fms_with_sns" { action = "lambda:InvokeFunction" function_name = module.format_json_fms_data.lambda_function_name principal = "sns.amazonaws.com" - source_arn = module.format_json_fms_data.lambda_dlq_arn + source_arn = module.format_json_fms_data.lambda_function_dlq_arn } @@ -22,7 +22,7 @@ resource "aws_lambda_permission" "live_serco_fms_with_sns" { resource "aws_sns_topic_subscription" "historic_sns_subscription" { topic_arn = aws_sns_topic.historic_s3_events.arn protocol = "sqs" - endpoint = module.calculate_checksum.lambda_dlq_arn + endpoint = module.calculate_checksum.lambda_function_dlq_arn } resource "aws_lambda_permission" "historic_with_sns" { @@ -30,5 +30,5 @@ resource "aws_lambda_permission" "historic_with_sns" { action = "lambda:InvokeFunction" function_name = module.calculate_checksum.lambda_function_name principal = "sns.amazonaws.com" - source_arn = module.calculate_checksum.lambda_dlq_arn + source_arn = module.calculate_checksum.lambda_function_dlq_arn }