From d0ed5437a9719d607e8672a4602cfc5090062edb Mon Sep 17 00:00:00 2001 From: Rafael Fonseca Date: Sat, 10 Aug 2024 13:10:36 +0200 Subject: [PATCH] OCPBUGS-38235: upi/aws: update lambda runtime python version The usage of python3.8 in lambda runtimes is being deprecated soon (Oct 14, 2024). This change updates it to python3.11 which can be easily installed in RHEL 9. --- upi/aws/cloudformation/02_cluster_infra.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upi/aws/cloudformation/02_cluster_infra.yaml b/upi/aws/cloudformation/02_cluster_infra.yaml index e315ede8c3b..92d72ea1e55 100644 --- a/upi/aws/cloudformation/02_cluster_infra.yaml +++ b/upi/aws/cloudformation/02_cluster_infra.yaml @@ -294,7 +294,7 @@ Resources: elb.register_targets(TargetGroupArn=event['ResourceProperties']['TargetArn'],Targets=[{'Id': event['ResourceProperties']['TargetIp']}]) responseData = {} cfnresponse.send(event, context, cfnresponse.SUCCESS, responseData, event['ResourceProperties']['TargetArn']+event['ResourceProperties']['TargetIp']) - Runtime: "python3.8" + Runtime: "python3.11" Timeout: 120 RegisterSubnetTagsLambdaIamRole: @@ -354,7 +354,7 @@ Resources: ec2_client.create_tags(Resources=[subnet_id], Tags=[{'Key': 'kubernetes.io/cluster/' + event['ResourceProperties']['InfrastructureName'], 'Value': 'shared'}]); responseData = {} cfnresponse.send(event, context, cfnresponse.SUCCESS, responseData, event['ResourceProperties']['InfrastructureName']+event['ResourceProperties']['Subnets'][0]) - Runtime: "python3.8" + Runtime: "python3.11" Timeout: 120 RegisterPublicSubnetTags: