Skip to content

Commit 6388a86

Browse files
committed
Merge branch 'fix/python-runtime-3.13' into 'develop'
Fix/python runtime 3.13 See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!250
2 parents 2e920b4 + 9672604 commit 6388a86

File tree

12 files changed

+111
-108
lines changed

12 files changed

+111
-108
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ SPDX-License-Identifier: MIT-0
3333
- **Related Conditions**: Removed parameter conditions and state machine definition substitutions for both features
3434
- **Conditional Logic**: Eliminated complex conditional logic from state machine definitions for summarization and assessment steps
3535

36+
### Changed
37+
- **Updated Python Lambda Runtime to 3.13**
38+
3639
### ⚠️ Breaking Changes
3740
- **Configuration Migration Required**: When updating a stack that previously had `IsSummarizationEnabled` or `IsAssessmentEnabled` set to `false`, these features will now default to `enabled: true` after the update. To maintain the disabled behavior:
3841
1. Update your configuration file to set `summarization.enabled: false` and/or `assessment.enabled: false` as needed

notebooks/misc/bedrock_client_cachepoint_test.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"\u001b[33mWARNING: There was an error checking the latest version of pip.\u001b[0m\u001b[33m\n",
4747
"\u001b[0mNote: you may need to restart the kernel to use updated packages.\n",
4848
"Version: 0.3.4\n",
49-
"Location: /home/ec2-user/.local/lib/python3.12/site-packages\n",
49+
"Location: /home/ec2-user/.local/lib/python3.13/site-packages\n",
5050
"Note: you may need to restart the kernel to use updated packages.\n"
5151
]
5252
}

notebooks/misc/e2e-example-with-assessment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"\u001b[33mWARNING: There was an error checking the latest version of pip.\u001b[0m\u001b[33m\n",
5151
"\u001b[0mNote: you may need to restart the kernel to use updated packages.\n",
5252
"Version: 0.3.4\n",
53-
"Location: /home/ec2-user/.local/lib/python3.12/site-packages\n",
53+
"Location: /home/ec2-user/.local/lib/python3.13/site-packages\n",
5454
"Note: you may need to restart the kernel to use updated packages.\n"
5555
]
5656
}

notebooks/misc/e2e-holistic-packet-classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"\u001b[33mWARNING: There was an error checking the latest version of pip.\u001b[0m\u001b[33m\n",
5858
"\u001b[0mNote: you may need to restart the kernel to use updated packages.\n",
5959
"Version: 0.2.21\n",
60-
"Location: /home/ec2-user/miniconda/lib/python3.12/site-packages\n",
60+
"Location: /home/ec2-user/miniconda/lib/python3.13/site-packages\n",
6161
"Note: you may need to restart the kernel to use updated packages.\n"
6262
]
6363
}

options/bda-lending-project/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Resources:
100100
CodeUri: src/bda_project_lambda/
101101
Handler: index.handler
102102
Role: !GetAtt LambdaExecutionRole.Arn
103-
Runtime: python3.12
103+
Runtime: python3.13
104104
Timeout: 300
105105
MemorySize: 256
106106
Environment:

options/bedrockkb/template.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Resources:
259259
Properties:
260260
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
261261
Handler: index.handler
262-
Runtime: python3.12
262+
Runtime: python3.13
263263
Timeout: 30
264264
InlineCode: |
265265
import cfnresponse
@@ -305,7 +305,7 @@ Resources:
305305
Properties:
306306
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
307307
Handler: index.handler
308-
Runtime: python3.12
308+
Runtime: python3.13
309309
Timeout: 30
310310
InlineCode: |
311311
import cfnresponse
@@ -484,7 +484,7 @@ Resources:
484484
Handler: oss_handler.lambda_handler
485485
MemorySize: 1024
486486
Role: !GetAtt OpenSearchLambdaExecutionRole.Arn
487-
Runtime: python3.12
487+
Runtime: python3.13
488488
Timeout: 840
489489
CodeUri: ./src/opensearch_index_custom_resource
490490
Environment:
@@ -756,7 +756,7 @@ Resources:
756756
Properties:
757757
Handler: handler.lambda_handler
758758
Role: !GetAtt "StartIngestionJobFunctionRole.Arn"
759-
Runtime: python3.12
759+
Runtime: python3.13
760760
Timeout: 600
761761
MemorySize: 128
762762
Code: ./src/start_ingestion_job_custom_resource

patterns/pattern-1/template.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ Resources:
528528
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
529529
CodeUri: src/bda_invoke_function/
530530
Handler: index.handler
531-
Runtime: python3.12
531+
Runtime: python3.13
532532
Timeout: 900
533533
MemorySize: 4096
534534
Environment:
@@ -596,7 +596,7 @@ Resources:
596596
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
597597
CodeUri: src/processresults_function/
598598
Handler: index.handler
599-
Runtime: python3.12
599+
Runtime: python3.13
600600
Timeout: 900
601601
MemorySize: 4096
602602
Environment:
@@ -687,7 +687,7 @@ Resources:
687687
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
688688
CodeUri: src/summarization_function/
689689
Handler: index.handler
690-
Runtime: python3.12
690+
Runtime: python3.13
691691
Timeout: 900
692692
MemorySize: 4096
693693
Environment:
@@ -772,7 +772,7 @@ Resources:
772772
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
773773
CodeUri: src/bda_completion_function/
774774
Handler: index.handler
775-
Runtime: python3.12
775+
Runtime: python3.13
776776
Timeout: 900
777777
MemorySize: 4096
778778
Environment:
@@ -908,7 +908,7 @@ Resources:
908908
Handler: index.lambda_handler
909909
LoggingConfig:
910910
LogGroup: !Ref HITLProcessLambdaLogGroup
911-
Runtime: python3.12
911+
Runtime: python3.13
912912
Timeout: 300
913913
CodeUri: src/hitl-process-function/
914914
Role: !GetAtt HITLProcessLambdaRole.Arn
@@ -1007,7 +1007,7 @@ Resources:
10071007
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10081008
CodeUri: src/hitl-wait-function/
10091009
Handler: index.lambda_handler
1010-
Runtime: python3.12
1010+
Runtime: python3.13
10111011
Timeout: 60
10121012
MemorySize: 256
10131013
Environment:
@@ -1064,7 +1064,7 @@ Resources:
10641064
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10651065
CodeUri: src/hitl-status-update-function/
10661066
Handler: index.handler
1067-
Runtime: python3.12
1067+
Runtime: python3.13
10681068
Timeout: 300
10691069
MemorySize: 512
10701070
Environment:

patterns/pattern-2/template.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ Resources:
845845
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
846846
CodeUri: src/ocr_function/
847847
Handler: index.handler
848-
Runtime: python3.12
848+
Runtime: python3.13
849849
Timeout: 900
850850
MemorySize: 4096
851851
Environment:
@@ -926,7 +926,7 @@ Resources:
926926
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
927927
CodeUri: src/classification_function/
928928
Handler: index.handler
929-
Runtime: python3.12
929+
Runtime: python3.13
930930
Timeout: 900
931931
MemorySize: 4096
932932
Environment:
@@ -1017,7 +1017,7 @@ Resources:
10171017
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10181018
CodeUri: src/extraction_function/
10191019
Handler: index.handler
1020-
Runtime: python3.12
1020+
Runtime: python3.13
10211021
Timeout: 900
10221022
MemorySize: 512
10231023
Environment:
@@ -1103,7 +1103,7 @@ Resources:
11031103
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
11041104
CodeUri: src/assessment_function/
11051105
Handler: index.handler
1106-
Runtime: python3.12
1106+
Runtime: python3.13
11071107
Timeout: 900
11081108
MemorySize: 512
11091109
Environment:
@@ -1184,7 +1184,7 @@ Resources:
11841184
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
11851185
CodeUri: src/processresults_function/
11861186
Handler: index.handler
1187-
Runtime: python3.12
1187+
Runtime: python3.13
11881188
Timeout: 900
11891189
MemorySize: 4096
11901190
Environment:
@@ -1248,7 +1248,7 @@ Resources:
12481248
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
12491249
CodeUri: src/summarization_function/
12501250
Handler: index.handler
1251-
Runtime: python3.12
1251+
Runtime: python3.13
12521252
Timeout: 900
12531253
MemorySize: 4096
12541254
Environment:

patterns/pattern-3/template.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ Resources:
763763
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
764764
CodeUri: src/ocr_function/
765765
Handler: index.handler
766-
Runtime: python3.12
766+
Runtime: python3.13
767767
Timeout: 900
768768
MemorySize: 4096
769769
Environment:
@@ -838,7 +838,7 @@ Resources:
838838
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
839839
CodeUri: src/classification_function/
840840
Handler: index.handler
841-
Runtime: python3.12
841+
Runtime: python3.13
842842
Timeout: 900
843843
MemorySize: 4096
844844
Environment:
@@ -922,7 +922,7 @@ Resources:
922922
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
923923
CodeUri: src/extraction_function/
924924
Handler: index.handler
925-
Runtime: python3.12
925+
Runtime: python3.13
926926
Timeout: 900
927927
MemorySize: 512
928928
Environment:
@@ -1003,7 +1003,7 @@ Resources:
10031003
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10041004
CodeUri: src/assessment_function/
10051005
Handler: index.handler
1006-
Runtime: python3.12
1006+
Runtime: python3.13
10071007
Timeout: 900
10081008
MemorySize: 512
10091009
Environment:
@@ -1084,7 +1084,7 @@ Resources:
10841084
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10851085
CodeUri: src/processresults_function/
10861086
Handler: index.handler
1087-
Runtime: python3.12
1087+
Runtime: python3.13
10881088
Timeout: 900
10891089
MemorySize: 4096
10901090
Environment:
@@ -1149,7 +1149,7 @@ Resources:
11491149
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
11501150
CodeUri: src/summarization_function/
11511151
Handler: index.handler
1152-
Runtime: python3.12
1152+
Runtime: python3.13
11531153
Timeout: 900
11541154
MemorySize: 4096
11551155
Environment:

0 commit comments

Comments
 (0)