diff --git a/cdn.tf b/cdn.tf index 5178c50..4db3199 100644 --- a/cdn.tf +++ b/cdn.tf @@ -2,28 +2,28 @@ resource "aws_lambda_function" "redirect" { - function_name = "sondehub-redirect" - handler = "redirect.handler" - s3_bucket = aws_s3_bucket_object.lambda.bucket - s3_key = aws_s3_bucket_object.lambda.key - publish = true - memory_size = 128 - role = aws_iam_role.basic_lambda_role.arn - runtime = "python3.9" - timeout = 3 + function_name = "sondehub-redirect" + handler = "redirect.handler" + s3_bucket = aws_s3_bucket_object.lambda.bucket + s3_key = aws_s3_bucket_object.lambda.key + publish = true + memory_size = 128 + role = aws_iam_role.basic_lambda_role.arn + runtime = "python3.9" + timeout = 3 source_code_hash = data.archive_file.lambda.output_base64sha256 } resource "aws_lambda_function" "ham_redirect" { - function_name = "ham-sondehub-redirect" - handler = "redirect_ham.handler" - s3_bucket = aws_s3_bucket_object.lambda.bucket - s3_key = aws_s3_bucket_object.lambda.key - publish = true - memory_size = 128 - role = aws_iam_role.basic_lambda_role.arn - runtime = "python3.9" - timeout = 3 + function_name = "ham-sondehub-redirect" + handler = "redirect_ham.handler" + s3_bucket = aws_s3_bucket_object.lambda.bucket + s3_key = aws_s3_bucket_object.lambda.key + publish = true + memory_size = 128 + role = aws_iam_role.basic_lambda_role.arn + runtime = "python3.9" + timeout = 3 source_code_hash = data.archive_file.lambda.output_base64sha256 } @@ -313,9 +313,9 @@ resource "aws_cloudfront_distribution" "sondehub" { origin_keepalive_timeout = 5 origin_protocol_policy = "http-only" origin_read_timeout = 30 - origin_ssl_protocols = [ - "TLSv1.2", - ] + origin_ssl_protocols = [ + "TLSv1.2", + ] } } default_cache_behavior { @@ -377,8 +377,8 @@ resource "aws_cloudfront_distribution" "sondehub" { } query_string = false } - compress = true - default_ttl = 0 + compress = true + default_ttl = 0 max_ttl = 0 min_ttl = 0 path_pattern = "calc/*" @@ -398,8 +398,8 @@ resource "aws_cloudfront_distribution" "sondehub" { } query_string = false } - compress = true - default_ttl = 0 + compress = true + default_ttl = 0 max_ttl = 0 min_ttl = 0 path_pattern = "calc" diff --git a/es.tf b/es.tf index a0c8a3b..3c52013 100644 --- a/es.tf +++ b/es.tf @@ -60,7 +60,7 @@ EOF ebs_enabled = true volume_type = "gp3" volume_size = 200 - iops = 3000 + iops = 3000 } log_publishing_options { cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:143841941773:log-group:/aws/aes/domains/sondes-v2/application-logs" diff --git a/ham_ingestion.tf b/ham_ingestion.tf index aae5836..a2f7028 100644 --- a/ham_ingestion.tf +++ b/ham_ingestion.tf @@ -271,7 +271,7 @@ resource "aws_lambda_function" "ham_listener_put" { architectures = ["arm64"] environment { variables = { - "ES" = "es.${local.domain_name}" + "ES" = "es.${local.domain_name}" "SNS_TOPIC" = aws_sns_topic.ham_listener_telem.arn } } diff --git a/ingestion.tf b/ingestion.tf index 67061ff..95d7abb 100644 --- a/ingestion.tf +++ b/ingestion.tf @@ -1,7 +1,7 @@ resource "aws_iam_role" "ingestion_lambda_role" { # need a specific role so that we can disable cloudwatch logs path = "/service-role/" - name_prefix = "sonde-ingestion-" + name_prefix = "sonde-ingestion-" assume_role_policy = <