mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-02-05 02:09:14 +00:00
Make history lambda bigger and longer
This commit is contained in:
parent
bfeda317bf
commit
b509ab4085
2
cdn.tf
2
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"
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user