From b509ab408554e639c1e1d52fb2af5232ac6d5b4e Mon Sep 17 00:00:00 2001 From: xss Date: Mon, 24 Jan 2022 16:49:02 +1100 Subject: [PATCH] Make history lambda bigger and longer --- cdn.tf | 2 +- historic.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = {