Skip to content

Commit 534260e

Browse files
Update api_sqs_lambda_stack.py -- fix the python 3.7 unsupported problem
"The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. "
1 parent e56c885 commit 534260e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
6969
#Creating Lambda function that will be triggered by the SQS Queue
7070
sqs_lambda = _lambda.Function(self,'SQSTriggerLambda',
7171
handler='lambda-handler.handler',
72-
runtime=_lambda.Runtime.PYTHON_3_7,
72+
runtime=_lambda.Runtime.PYTHON_3_11,
7373
code=_lambda.Code.from_asset('lambda'),
7474
)
7575

0 commit comments

Comments
 (0)