Skip to content

Commit 82cdfe9

Browse files
committed
bump up python version from 3.8 to 3.11
1 parent 5fc68cb commit 82cdfe9

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

lambdas/kafka_test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ install-requirements:
77

88
. venv/bin/activate && sudo pipenv lock --requirements > requirements.txt
99
#. venv/bin/activate && sudo pip install --target ./lib -r requirements.txt
10-
. venv/bin/activate && sudo docker run -v $(PWD):/var/task "lambci/lambda:build-python3.8" /bin/sh -c "pip install --target ./lib -r requirements.txt; exit"
10+
. venv/bin/activate && sudo docker run -v $(PWD):/var/task "lambci/lambda:build-python3.11" /bin/sh -c "pip install --target ./lib -r requirements.txt; exit"
1111
sudo cp ../../terraform/modules/kafka-schema-registry/schemas/* ./lib/
1212
rm -rf venv/

terraform/core/13-mssql-ingestion.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ module "max_concurrency_lambda" {
190190
s3_key = "academy-revs-and-bens-housing-needs-database-ingestion-max-concurrency.zip"
191191
lambda_source_dir = "../../lambdas/calculate_max_concurrency"
192192
lambda_output_path = "../../lambdas/calculate_max_concurrency/max-concurrency.zip"
193-
runtime = "python3.8"
193+
runtime = "python3.11"
194194
}
195195

196196
resource "aws_iam_role" "academy_step_functions_role" {

terraform/core/22-sagemaker.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ resource "aws_iam_role_policy_attachment" "shutdown_notebooks" {
110110
policy_arn = aws_iam_policy.shutdown_notebooks[0].arn
111111
}
112112

113-
# Lambda function
113+
# Lambda function
114114
data "archive_file" "shutdown_notebooks" {
115115
type = "zip"
116116
source_dir = "../../lambdas/shutdown_notebooks"
@@ -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.8"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module "icaseworks_api_ingestion" {
1616
lambda_artefact_storage_bucket = module.lambda_artefact_storage.bucket_id
1717
lambda_name = "icaseworks-api-ingestion"
1818
lambda_handler = "main.lambda_handler"
19-
runtime_language = "python3.8"
19+
runtime_language = "python3.11"
2020
secrets_manager_kms_key = aws_kms_key.secrets_manager_key
2121
s3_target_bucket_arn = module.landing_zone.bucket_arn
2222
s3_target_bucket_name = local.s3_target_bucket_name
@@ -44,7 +44,7 @@ module "vonage_api_ingestion" {
4444
lambda_artefact_storage_bucket = module.lambda_artefact_storage.bucket_id
4545
lambda_name = "vonage-api-ingestion"
4646
lambda_handler = "main.lambda_handler"
47-
runtime_language = "python3.8"
47+
runtime_language = "python3.11"
4848
secrets_manager_kms_key = aws_kms_key.secrets_manager_key
4949
s3_target_bucket_arn = module.landing_zone.bucket_arn
5050
s3_target_bucket_name = local.s3_target_bucket_name

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.8",
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.8' 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.8" ? "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.8"
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/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.8"
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.8"
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

terraform/modules/glue-failure-alert-notifications/10-main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ resource "aws_lambda_function" "lambda" {
8989
function_name = lower("${var.identifier_prefix}${var.lambda_name}")
9090
role = aws_iam_role.lambda.arn
9191
handler = "main.lambda_handler"
92-
runtime = "python3.8"
92+
runtime = "python3.11"
9393
source_code_hash = filebase64sha256(data.archive_file.lambda.output_path)
9494
s3_bucket = var.lambda_artefact_storage_bucket
9595
s3_key = "${local.lambda_name_underscore}.zip"

0 commit comments

Comments
 (0)