From ebabbac166c915897e469ccd50041f70c7bb876e Mon Sep 17 00:00:00 2001 From: Michaela Date: Sun, 14 Mar 2021 13:43:19 +1100 Subject: [PATCH] fixes --- main.tf | 2 +- query/lambda_function.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 87d8dba..c0530b8 100644 --- a/main.tf +++ b/main.tf @@ -960,7 +960,7 @@ resource "aws_apigatewayv2_api_mapping" "ApiGatewayV2ApiMapping" { } resource "aws_apigatewayv2_domain_name" "ApiGatewayV2DomainName" { - domain_name = "api.${local.domain_name}" + domain_name = "api-raw.${local.domain_name}" domain_name_configuration { certificate_arn = aws_acm_certificate_validation.CertificateManagerCertificate.certificate_arn endpoint_type = "REGIONAL" diff --git a/query/lambda_function.py b/query/lambda_function.py index 667bbbc..2da8afb 100644 --- a/query/lambda_function.py +++ b/query/lambda_function.py @@ -192,7 +192,7 @@ def datanew(event, context): "12hours": (43200, 120), # 12h, 2m "6hours": (21600, 60), # 6h, 1m "3hours": (10800, 10), # 3h, 10s - "1hour": (3600, 5), # 1h, 5s + "1hour": (3600, 10), # 1h, 5s } duration_query = "1hour" requested_time = datetime.now()