Skip to content

Commit 1d7e9d8

Browse files
authored
Merge pull request #2786 from kakakakakku/terraform-lambda-sfn
terraform-lambda-sfn: Update runtime and Powertools to python3.12
2 parents 9ea6c5d + d807aaf commit 1d7e9d8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

terraform-lambda-sfn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application.
44

5-
A Lambda function uses the AWS SDK to asyncronously invoke the Step Function workflow, passing the event body. The Step Function workflow showcasing the different States.
5+
A Lambda function uses the AWS SDK to asynchronously invoke the Step Function workflow, passing the event body. The Step Function workflow showcasing the different States.
66

77
![](./images/stepfunctions_graph.png)
88

terraform-lambda-sfn/example-pattern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"headline": "How it works",
99
"text": [
1010
"The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application.",
11-
"A Lambda function uses the AWS SDK to asyncronously invoke the Step Function workflow, passing the event body. The Step Function workflow showcasing the different States."
11+
"A Lambda function uses the AWS SDK to asynchronously invoke the Step Function workflow, passing the event body. The Step Function workflow showcasing the different States."
1212
]
1313
},
1414
"gitHub": {

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.region}: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)