Skip to content

Conversation

@brentroady
Copy link
Contributor

Python runtime given throws an exception when creating the lambda function (InvalidParameterValueException). Update to the new runtime version.

Issue #, if available:

Description of changes:
Running the lamba create-function results in the following error

:~/workshop $ aws lambda create-function \
--function-name ddbreplica_lambda --zip-file fileb://ddbreplica_lambda.zip \
--handler ddbreplica_lambda.lambda_handler --timeout 60 --runtime python3.7 \
--description "Sample lambda function for dynamodb streams" \
--role $(cat ~/workshop/ddb-replication-role-arn.txt)

An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions.

This change updates the example to use the recommended Python runtime.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Python runtime given throws an exception when creating the lambda function (`InvalidParameterValueException`). Update to the new runtime version.
@switch180 switch180 self-assigned this Jun 25, 2024
@switch180
Copy link
Contributor

Thank you for finding this and reporting it. We will add to this commit some other changes for the lab guide and merge it in.

@switch180
Copy link
Contributor

Thanks!

@switch180 switch180 merged commit ebb0205 into aws-samples:master Jul 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants