Skip to content

Commit

Permalink
Disable lambda arcgis event target
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikuoja committed Jan 17, 2024
1 parent d68079f commit f1cff30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions infra/cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ resource "aws_cloudwatch_event_rule" "lambda_arcgis" {
schedule_expression = "cron(45 4 * * ? *)"
tags = local.default_tags
}

resource "aws_cloudwatch_event_target" "lambda_arcgis" {
target_id = "${var.prefix}_load_arcgis"
rule = aws_cloudwatch_event_rule.lambda_arcgis.name
arn = aws_lambda_function.arcgis_loader.arn
input = "{\"close_to_lon\": 23.7634608, \"close_to_lat\": 61.4976505, \"radius\": 60}"
}
# Disabled as long as arcgis data is not available
# resource "aws_cloudwatch_event_target" "lambda_arcgis" {
# target_id = "${var.prefix}_load_arcgis"
# rule = aws_cloudwatch_event_rule.lambda_arcgis.name
# arn = aws_lambda_function.arcgis_loader.arn
# input = "{\"close_to_lon\": 23.7634608, \"close_to_lat\": 61.4976505, \"radius\": 60}"
# }

0 comments on commit f1cff30

Please sign in to comment.