Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Step3.en.md #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

brentroady
Copy link

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.

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