add some tags to help with billing investigation

This commit is contained in:
Michaela Wheeler 2021-12-22 15:05:45 +11:00
parent 1145594eaa
commit 683c121054
6 changed files with 52 additions and 1 deletions

View File

@ -79,6 +79,9 @@ resource "aws_lambda_function" "historic_to_s3" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "historic_to_s3"
}
}
resource "aws_lambda_function" "queue_data_update" {
function_name = "queue_data_update"
@ -97,6 +100,9 @@ resource "aws_lambda_function" "queue_data_update" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "queue_data_update"
}
}
resource "aws_sqs_queue" "historic_to_s3" {
@ -228,6 +234,10 @@ resource "aws_lambda_function" "history" {
}
}
tags = {
Name = "history"
}
}

View File

@ -34,7 +34,9 @@ resource "aws_lambda_function" "station" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "station-api-to-iot-core"
}
}
resource "aws_lambda_permission" "station" {
@ -123,6 +125,9 @@ resource "aws_lambda_function" "sns_to_mqtt" {
lifecycle {
ignore_changes = [environment]
}
tags = {
Name = "sns-to-mqtt"
}
}

View File

@ -78,6 +78,9 @@ resource "aws_lambda_function" "predict_updater" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "predict_updater"
}
}
@ -154,6 +157,9 @@ resource "aws_lambda_function" "predictions" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "predictions"
}
}
resource "aws_lambda_permission" "predictions" {
action = "lambda:InvokeFunction"
@ -180,6 +186,9 @@ resource "aws_lambda_function" "reverse_predictions" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "reverse_predictions"
}
}
resource "aws_lambda_permission" "reverse_predictions" {
action = "lambda:InvokeFunction"
@ -670,6 +679,9 @@ resource "aws_lambda_function" "predictor_update_trigger_lambda" {
role = aws_iam_role.predictor_update_trigger_lambda.arn
runtime = "python3.9"
timeout = 3
tags = {
Name = "tawhiri-updater"
}
}
resource "aws_lambda_permission" "predictor_update_trigger_lambda" {

View File

@ -16,6 +16,9 @@ resource "aws_lambda_function" "get_sondes" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "query"
}
}
@ -40,6 +43,9 @@ resource "aws_lambda_function" "get_telem" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "get_telem"
}
}
resource "aws_lambda_function" "get_sites" {
@ -59,6 +65,9 @@ resource "aws_lambda_function" "get_sites" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "get_sites"
}
}
resource "aws_lambda_function" "get_listener_telemetry" {
@ -78,6 +87,9 @@ resource "aws_lambda_function" "get_listener_telemetry" {
"ES" = "es.${local.domain_name}"
}
}
tags = {
Name = "get_listener_telemetry"
}
}

View File

@ -68,6 +68,9 @@ resource "aws_lambda_function" "recovered_get" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "recovered_get"
}
}
@ -88,6 +91,9 @@ resource "aws_lambda_function" "recovered_stats" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "recovered_stats"
}
}
@ -108,6 +114,9 @@ resource "aws_lambda_function" "recovered_put" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "recovered_put"
}
}
resource "aws_lambda_permission" "recovered_get" {

View File

@ -71,6 +71,9 @@ resource "aws_lambda_function" "sqs_to_elk" {
"ES" = aws_route53_record.es.fqdn
}
}
tags = {
Name = "sqs_to_elk"
}
}
resource "aws_lambda_event_source_mapping" "sqs_to_elk" {