Skip to content

Commit

Permalink
python version chandeg from 3.8 to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kmt fo committed Sep 8, 2024
1 parent de027ea commit f22b6a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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]
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f22b6a5

Please sign in to comment.