Skip to content

Commit

Permalink
correct output name
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-heery committed Jan 2, 2025
1 parent c0b4a29 commit ffa2576
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
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" {
statement_id = "LiveServcoFMSLambdaAllowExecutionFromSNS"
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
}


Expand All @@ -22,13 +22,13 @@ 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" {
statement_id = "ChecksumLambdaAllowExecutionFromHistoricDataSNS"
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
}

0 comments on commit ffa2576

Please sign in to comment.