Skip to content

Commit cb10cf8

Browse files
update python runtimes to 3.11
1 parent 5df9d7f commit cb10cf8

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

lambdas/g_drive_folder_to_s3/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ google-api-python-client = "*"
1111
boto3 = "*"
1212

1313
[requires]
14-
python_version = "3.10"
14+
python_version = "3.11"

lambdas/set_budget_limit_amount/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ name = "pypi"
99
boto3 = "*"
1010

1111
[requires]
12-
python_version = "3.9"
12+
python_version = "3.11"

terraform/core/22-sagemaker.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ resource "aws_lambda_function" "shutdown_notebooks" {
138138

139139
role = aws_iam_role.shutdown_notebooks[0].arn
140140
handler = "main.shutdown_notebooks"
141-
runtime = "python3.9"
141+
runtime = "python3.11"
142142
function_name = "${local.short_identifier_prefix}shutdown-notebooks"
143143
s3_bucket = module.lambda_artefact_storage.bucket_id
144144
s3_key = aws_s3_object.shutdown_notebooks.key

terraform/core/38-api-ingestion.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "icaseworks_api_ingestion" {
1515
lambda_artefact_storage_bucket = module.lambda_artefact_storage.bucket_id
1616
lambda_name = "icaseworks-api-ingestion"
1717
lambda_handler = "main.lambda_handler"
18-
runtime_language = "python3.9"
18+
runtime_language = "python3.11"
1919
secrets_manager_kms_key = aws_kms_key.secrets_manager_key
2020
s3_target_bucket_arn = module.landing_zone.bucket_arn
2121
s3_target_bucket_name = local.s3_target_bucket_name

terraform/core/44-lambda-layers.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module "lambda_layer_1" {
66
identifier_prefix = local.short_identifier_prefix
77
layer_zip_file = "layer1.zip"
88
layer_name = "panas-2-1-4-layer"
9-
compatible_runtimes = ["python3.9"]
9+
compatible_runtimes = ["python3.11"]
1010
}
1111

1212
module "lambda_layer_2" {
@@ -17,7 +17,7 @@ module "lambda_layer_2" {
1717
identifier_prefix = local.short_identifier_prefix
1818
layer_zip_file = "layer2.zip"
1919
layer_name = "requests-2-31-0-and-httplib-0-22-0-layer"
20-
compatible_runtimes = ["python3.9"]
20+
compatible_runtimes = ["python3.11"]
2121
}
2222

2323
module "lambda_layer_3" {
@@ -28,7 +28,7 @@ module "lambda_layer_3" {
2828
identifier_prefix = local.short_identifier_prefix
2929
layer_zip_file = "layer3.zip"
3030
layer_name = "notifications-python-client-9-0-0-layer"
31-
compatible_runtimes = ["python3.9"]
31+
compatible_runtimes = ["python3.11"]
3232
}
3333

3434
module "lambda_layer_4" {
@@ -39,7 +39,7 @@ module "lambda_layer_4" {
3939
identifier_prefix = local.short_identifier_prefix
4040
layer_zip_file = "layer4.zip"
4141
layer_name = "numpy-1-26-3-layer"
42-
compatible_runtimes = ["python3.9"]
42+
compatible_runtimes = ["python3.11"]
4343
}
4444

4545
module "lambda_layer_5" {
@@ -50,7 +50,7 @@ module "lambda_layer_5" {
5050
identifier_prefix = local.short_identifier_prefix
5151
layer_zip_file = "layer5.zip"
5252
layer_name = "google-apis-layer"
53-
compatible_runtimes = ["python3.9"]
53+
compatible_runtimes = ["python3.11"]
5454
}
5555

5656
module "lambda_layer_6" {
@@ -61,7 +61,7 @@ module "lambda_layer_6" {
6161
identifier_prefix = local.short_identifier_prefix
6262
layer_zip_file = "layer6.zip"
6363
layer_name = "urllib3-1-26-18-layer"
64-
compatible_runtimes = ["python3.9"]
64+
compatible_runtimes = ["python3.11"]
6565
}
6666

6767
module "lambda_layer_7" {
@@ -72,5 +72,5 @@ module "lambda_layer_7" {
7272
identifier_prefix = local.short_identifier_prefix
7373
layer_zip_file = "layer7.zip"
7474
layer_name = "s3fs-2023-12-2-layer"
75-
compatible_runtimes = ["python3.9"]
75+
compatible_runtimes = ["python3.11"]
7676
}

terraform/modules/api-ingestion-lambda/01-inputs-required.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ variable "runtime_language" {
6565
validation {
6666
condition = (
6767
contains([
68-
"python3.9",
68+
"python3.11",
6969
"nodejs14.x"
7070
], var.runtime_language)
7171
)
72-
error_message = "The value cannot be a blank string, and must be one of the following: 'python3.9' or 'nodejs14.x'"
72+
error_message = "The value cannot be a blank string, and must be one of the following: 'python3.11' or 'nodejs14.x'"
7373
}
7474
}
7575

terraform/modules/api-ingestion-lambda/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data "aws_iam_policy_document" "lambda_assume_role" {
1313
}
1414

1515
locals {
16-
command = var.runtime_language == "python3.9" ? "make install-requirements" : (var.runtime_language == "nodejs14.x" ? "npm install" : 0)
16+
command = var.runtime_language == "python3.11" ? "make install-requirements" : (var.runtime_language == "nodejs14.x" ? "npm install" : 0)
1717
# This ensures that this data resource will not be evaluated until
1818
# after the null_resource has been created.
1919
lambda_exporter_id = null_resource.run_install_requirements.id

terraform/modules/aws-lambda-folder-ingestion/02-inputs-optional.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ variable "tags" {
1919
variable "runtime" {
2020
type = string
2121
description = "Runtime to use for the Lambda Function"
22-
default = "python3.9"
22+
default = "python3.11"
2323
validation {
2424
condition = contains(["python3.9", "python3.10", "python3.11"], var.runtime)
2525
error_message = "Runtime must be a valid Python runtime"

terraform/modules/aws-lambda/02-inputs-optional.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ variable "tags" {
1919
variable "runtime" {
2020
type = string
2121
description = "Runtime to use for the Lambda Function"
22-
default = "python3.9"
22+
default = "python3.11"
2323
validation {
2424
condition = can(regex("python3[.]([7-9]|10)", var.runtime))
2525
error_message = "Runtime must be a valid Python runtime"

terraform/modules/g-drive-to-s3/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ resource "aws_lambda_function" "g_drive_to_s3_copier_lambda" {
133133

134134
role = aws_iam_role.g_drive_to_s3_copier_lambda.arn
135135
handler = "main.lambda_handler"
136-
runtime = "python3.9"
136+
runtime = "python3.11"
137137
function_name = lower("${var.identifier_prefix}g-drive-${var.lambda_name}")
138138
s3_bucket = var.lambda_artefact_storage_bucket
139139
s3_key = aws_s3_object.g_drive_to_s3_copier_lambda.key

0 commit comments

Comments
 (0)