Make history lambda bigger and longer

This commit is contained in:
xss 2022-01-24 16:49:02 +11:00
parent bfeda317bf
commit b509ab4085
2 changed files with 3 additions and 3 deletions

2
cdn.tf
View File

@ -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"

View File

@ -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 = {