diff --git a/cdn.tf b/cdn.tf index 4d5e745..db8c906 100644 --- a/cdn.tf +++ b/cdn.tf @@ -545,7 +545,7 @@ resource "aws_cloudfront_distribution" "api" { viewer_protocol_policy = "redirect-to-https" } ordered_cache_behavior { - allowed_methods = ["GET", "HEAD"] + allowed_methods = ["GET", "HEAD", "OPTIONS"] cached_methods = [ "HEAD", "GET" diff --git a/historic.tf b/historic.tf index 0ffdc79..ccee621 100644 --- a/historic.tf +++ b/historic.tf @@ -69,10 +69,10 @@ resource "aws_lambda_function" "historic_to_s3" { s3_key = aws_s3_bucket_object.lambda.key source_code_hash = data.archive_file.lambda.output_base64sha256 publish = true - memory_size = 3096 + memory_size = 4096 role = aws_iam_role.historic.arn runtime = "python3.9" - timeout = 120 + timeout = 300 reserved_concurrent_executions = 2 environment { variables = {