Skip to content

Commit fbb0d32

Browse files
committed
terraform-lambda-sfn: Update runtime and Powertools to python3.12
1 parent 3aae280 commit fbb0d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform-lambda-sfn/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ module "lambda_function" {
9999
function_name = "${random_pet.this.id}-lambda"
100100
description = "My awesome lambda function"
101101
handler = "LambdaFunction.lambda_handler"
102-
runtime = "python3.8"
102+
runtime = "python3.12"
103103
publish = true
104104

105105
source_path = "${path.module}/src"
106106

107-
layers = ["arn:aws:lambda:${data.aws_region.current.name}:017000801446:layer:AWSLambdaPowertoolsPython:15"]
107+
layers = ["arn:aws:lambda:${data.aws_region.current.name}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:19"]
108108

109109
environment_variables = {
110110
SFN_ARN = module.step_function.state_machine_arn

0 commit comments

Comments
 (0)