Skip to content

Commit 7802e68

Browse files
author
Bob Strahan
committed
Revert Lambda runtime from python3.13 to python3.12 to resolve build dependencies
1 parent bc28967 commit 7802e68

File tree

16 files changed

+116
-114
lines changed

16 files changed

+116
-114
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ SPDX-License-Identifier: MIT-0
6666
- Enhanced developer experience with rich console output and clear progress indicators
6767
- Better error diagnostics and troubleshooting capabilities
6868

69+
- **Reverted to python3.12 runtime to resolve build package dependency problems**
70+
6971
### Technical Improvements
7072

7173
- **Build System Optimization**: Checksum-based incremental builds reduce unnecessary processing time

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Test system capacity and identify bottlenecks:
215215

216216
**Python Runtime Error:**
217217
```
218-
Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations: [...] which did not satisfy constraints for runtime: python3.13
218+
Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations: [...] which did not satisfy constraints for runtime: python3.12
219219
```
220220
**Resolution:** Install Python 3.13 and ensure it's in your PATH, or use the `--use-container` flag for containerized builds.
221221

notebooks/examples/demo-lambda/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Resources:
2828
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
2929
CodeUri: ./
3030
Handler: GENAIIDP-notebook-demo-extractor.lambda_handler
31-
Runtime: python3.13
31+
Runtime: python3.12
3232
Timeout: 300
3333
MemorySize: 512
3434
Description: Demo Lambda function for GenAI IDP Custom Prompt Generator demonstration

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.13/site-packages\n",
49+
"Location: /home/ec2-user/.local/lib/python3.12/site-packages\n",
5050
"Note: you may need to restart the kernel to use updated packages.\n"
5151
]
5252
}

notebooks/misc/bedrock_client_test.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"Note: you may need to restart the kernel to use updated packages.\n",
4040
"Note: you may need to restart the kernel to use updated packages.\n",
4141
"Version: 0.2.19\n",
42-
"Location: /Users/miislamg/miniconda3/envs/genaiic-idp-accelerator/lib/python3.13/site-packages\n",
42+
"Location: /Users/miislamg/miniconda3/envs/genaiic-idp-accelerator/lib/python3.12/site-packages\n",
4343
"Note: you may need to restart the kernel to use updated packages.\n"
4444
]
4545
}

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.13/site-packages\n",
53+
"Location: /home/ec2-user/.local/lib/python3.12/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.13/site-packages\n",
60+
"Location: /home/ec2-user/miniconda/lib/python3.12/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.13
103+
Runtime: python3.12
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.13
262+
Runtime: python3.12
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.13
308+
Runtime: python3.12
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.13
487+
Runtime: python3.12
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.13
759+
Runtime: python3.12
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.13
531+
Runtime: python3.12
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.13
599+
Runtime: python3.12
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.13
690+
Runtime: python3.12
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.13
775+
Runtime: python3.12
776776
Timeout: 900
777777
MemorySize: 4096
778778
Environment:
@@ -910,7 +910,7 @@ Resources:
910910
Handler: index.lambda_handler
911911
LoggingConfig:
912912
LogGroup: !Ref HITLProcessLambdaLogGroup
913-
Runtime: python3.13
913+
Runtime: python3.12
914914
Timeout: 300
915915
CodeUri: src/hitl-process-function/
916916
Role: !GetAtt HITLProcessLambdaRole.Arn
@@ -1009,7 +1009,7 @@ Resources:
10091009
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10101010
CodeUri: src/hitl-wait-function/
10111011
Handler: index.lambda_handler
1012-
Runtime: python3.13
1012+
Runtime: python3.12
10131013
Timeout: 60
10141014
MemorySize: 256
10151015
Environment:
@@ -1066,7 +1066,7 @@ Resources:
10661066
PermissionsBoundary: !If [HasPermissionsBoundary, !Ref PermissionsBoundaryArn, !Ref AWS::NoValue]
10671067
CodeUri: src/hitl-status-update-function/
10681068
Handler: index.handler
1069-
Runtime: python3.13
1069+
Runtime: python3.12
10701070
Timeout: 300
10711071
MemorySize: 512
10721072
Environment:

0 commit comments

Comments
 (0)