From f22b6a50a196a1b0a5d8b01153a0eff2b1c16641 Mon Sep 17 00:00:00 2001 From: kmt fo Date: Sun, 8 Sep 2024 21:49:00 +0200 Subject: [PATCH 1/2] python version chandeg from 3.8 to 3.11 --- infra/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index a08c576..7a6f674 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -153,7 +153,7 @@ resource "aws_lambda_permission" "apigw_lambda" { resource "aws_lambda_layer_version" "test_lambda_layer" { filename = "make_lamda_layer/python.zip" layer_name = "test_lambda_layer" - compatible_runtimes = ["python3.8", "python3.7"] + compatible_runtimes = ["python3.11", "python3.7"] } resource "aws_lambda_function" "lambda" { @@ -162,7 +162,7 @@ resource "aws_lambda_function" "lambda" { role = data.aws_iam_role.role.arn handler = "lambda.register_handler" source_code_hash = data.archive_file.lambda_zip.output_base64sha256 - runtime = "python3.8" + runtime = "python3.11" timeout = 10 layers = [aws_lambda_layer_version.test_lambda_layer.arn] //lambda_layer here is the name depends_on = [aws_lambda_layer_version.test_lambda_layer] @@ -191,7 +191,7 @@ resource "aws_lambda_function" "scan" { role = data.aws_iam_role.role.arn handler = "lambda.scan_handler" source_code_hash = data.archive_file.lambda_zip.output_base64sha256 - runtime = "python3.8" + runtime = "python3.11" timeout = 900 environment { From 4eda0052a1be691676de00046f0be3f13b9a55ad Mon Sep 17 00:00:00 2001 From: ngnnpgn Date: Mon, 23 Sep 2024 21:12:35 +0000 Subject: [PATCH 2/2] fix: python version chandeg from 3.8 to 3.11 --- infra/main.tf | 2 -- requirements.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index 7a6f674..4168175 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -42,10 +42,8 @@ resource "aws_s3_bucket_public_access_block" "website" { depends_on = [aws_s3_bucket.website] } - resource "aws_s3_bucket_policy" "website" { bucket = aws_s3_bucket.website.id - policy = jsonencode({ Version = "2012-10-17" Statement = [ diff --git a/requirements.txt b/requirements.txt index cbcf5f1..6b1ca54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,4 @@ selenium-wire==4.2.0 certifi>=2023.7.22 # not directly required, pinned by Snyk to avoid a vulnerability requests>=2.32.2 # not directly required, pinned by Snyk to avoid a vulnerability urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability -Werkzeug==2.1.2 +Werkzeug==2.1.2 \ No newline at end of file