aws-samples / amazon-rekognition-serverless-large-scale-image-and-video-processing

Process images and videos at scale using Amazon Rekognition
MIT No Attribution
35 stars 21 forks source link

Update Lambda function runtimes to resolve deployment issue #17

Closed astraeus-sirius closed 3 months ago

astraeus-sirius commented 4 months ago

The deployment of the RekognitionPipelineStack was failing due to the use of the unsupported Python 3.7 runtime for Lambda functions. This commit updates the runtime to Python 3.9 for the affected Lambda functions, including S3Processor, S3BatchProcessor, TaskProcessor, and JobResultProcessor.

The Python runtime version has been changed from lambda.Runtime.PYTHON_3_7 to lambda.Runtime.PYTHON_3_9 in the rekognition-pipeline-stack.ts file. This change ensures compatibility with the current AWS Lambda runtime requirements and allows for successful deployment of the stack.

Resolves the deployment error: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions."

Issue #, if available:

Description of changes:

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