mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2024-12-18 20:57:56 +00:00
add some tags to help with billing investigation
This commit is contained in:
parent
1145594eaa
commit
683c121054
10
historic.tf
10
historic.tf
@ -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"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
12
predictor.tf
12
predictor.tf
@ -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" {
|
||||
|
12
query.tf
12
query.tf
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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" {
|
||||
|
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user