From 3e8338148ebdb536f437212f9c6315aa0406b2c9 Mon Sep 17 00:00:00 2001 From: Rachel Hagerman <110480692+rlhagerm@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:53:58 -0500 Subject: [PATCH] Update unsupported runtimes for Python cross-service examples. --- python/cross_service/apigateway_websocket_chat/setup.yaml | 2 +- .../rekognition_content_moderation/cloudformation.yaml | 4 ++-- python/cross_service/stepfunctions_messenger/setup.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/cross_service/apigateway_websocket_chat/setup.yaml b/python/cross_service/apigateway_websocket_chat/setup.yaml index 24e96ca7c13..59a039d87ec 100644 --- a/python/cross_service/apigateway_websocket_chat/setup.yaml +++ b/python/cross_service/apigateway_websocket_chat/setup.yaml @@ -70,7 +70,7 @@ Resources: table_name: Ref: docexamplewebsocketchat902A2E60 Handler: lambda_chat.lambda_handler - Runtime: python3.7 + Runtime: python3.11 DependsOn: - docexampleapigatewaywebsocketchatDefaultPolicyDC1046A1 - docexampleapigatewaywebsocketchatE8890FEB diff --git a/python/cross_service/rekognition_content_moderation/cloudformation.yaml b/python/cross_service/rekognition_content_moderation/cloudformation.yaml index 393528f0602..2db753c47fd 100644 --- a/python/cross_service/rekognition_content_moderation/cloudformation.yaml +++ b/python/cross_service/rekognition_content_moderation/cloudformation.yaml @@ -56,7 +56,7 @@ Resources: ZipFile: | import json import boto3 - import botocore.vendored.requests.packages.urllib3 as urllib3 + import urllib3 import io @@ -118,7 +118,7 @@ Resources: Timeout: 35 MemorySize: 128 Role: !GetAtt lambdaIAMRole.Arn - Runtime: python3.7 + Runtime: python3.11 lambdaApiGatewayInvoke: Type: AWS::Lambda::Permission diff --git a/python/cross_service/stepfunctions_messenger/setup.yaml b/python/cross_service/stepfunctions_messenger/setup.yaml index ad5a4b0675b..014b3b0f5e3 100644 --- a/python/cross_service/stepfunctions_messenger/setup.yaml +++ b/python/cross_service/stepfunctions_messenger/setup.yaml @@ -77,7 +77,7 @@ Resources: - docexamplestepfunctionslambdamessagesroleA963E816 - Arn Handler: index.lambda_handler - Runtime: python3.7 + Runtime: python3.11 DependsOn: - docexamplestepfunctionslambdamessagesroleDefaultPolicy2726D8C5 - docexamplestepfunctionslambdamessagesroleA963E816