diff --git a/terraform-lambda-sfn/README.md b/terraform-lambda-sfn/README.md index 3c1727b9f..1fc665388 100644 --- a/terraform-lambda-sfn/README.md +++ b/terraform-lambda-sfn/README.md @@ -2,7 +2,7 @@ The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application. -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. +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. ![](./images/stepfunctions_graph.png) diff --git a/terraform-lambda-sfn/example-pattern.json b/terraform-lambda-sfn/example-pattern.json index a3a982f47..71f753b73 100644 --- a/terraform-lambda-sfn/example-pattern.json +++ b/terraform-lambda-sfn/example-pattern.json @@ -8,7 +8,7 @@ "headline": "How it works", "text": [ "The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application.", - "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." + "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." ] }, "gitHub": { diff --git a/terraform-lambda-sfn/main.tf b/terraform-lambda-sfn/main.tf index 28c894d10..35ea4b20e 100644 --- a/terraform-lambda-sfn/main.tf +++ b/terraform-lambda-sfn/main.tf @@ -99,12 +99,12 @@ module "lambda_function" { function_name = "${random_pet.this.id}-lambda" description = "My awesome lambda function" handler = "LambdaFunction.lambda_handler" - runtime = "python3.8" + runtime = "python3.12" publish = true source_path = "${path.module}/src" - layers = ["arn:aws:lambda:${data.aws_region.current.name}:017000801446:layer:AWSLambdaPowertoolsPython:15"] + layers = ["arn:aws:lambda:${data.aws_region.current.region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:19"] environment_variables = { SFN_ARN = module.step_function.state_machine_arn