Skip to content

Commit 1a86462

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.7.13
2 parents 9f89e57 + cb6adf6 commit 1a86462

18 files changed

+29
-432
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.7.13] - 2025-02-21
11+
12+
### Fixed
13+
- Remove Boto3 layer from all Lambda functions as Bedrock features are available in the base Boto package deployed in Lambda
14+
- Updated all Lambda functions to Python 3.13 runtime
15+
1016
## [0.7.12] - 2025-02-21
1117

1218
### Added
@@ -290,6 +296,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
290296
- Initial release
291297

292298
[Unreleased]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/compare/main...develop
299+
[0.7.13]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.13
293300
[0.7.12]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.12
294301
[0.7.11]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.11
295302
[0.7.10]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.10

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.12
1+
0.7.13

pca-boto3-bedrock/template.yaml

Lines changed: 0 additions & 168 deletions
This file was deleted.

pca-dashboards/pca-dashboards.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Resources:
286286
287287
MemorySize: 128
288288
Role: !GetAtt FirehoseTransformationLambdaRoleForPca.Arn
289-
Runtime: "python3.11"
289+
Runtime: "python3.13"
290290
Timeout: 600
291291
TracingConfig:
292292
Mode: "PassThrough"

pca-main-nokendra.template

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.12) (uksb-1sn29lk73, SO9071)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.13) (uksb-1sn29lk73, SO9071)
44

55
Parameters:
66

@@ -585,12 +585,6 @@ Conditions:
585585
ShouldCreateKendraIndexDeveloperEdition: !Equals [!Ref EnableTranscriptKendraSearch, 'Yes, create new Kendra Index (Developer Edition)']
586586
ShouldDeployPcaDashboards: !Equals [!Ref EnablePcaDashboards, 'Yes']
587587
ShouldLoadSampleFiles: !Equals [!Ref loadSampleAudioFiles, 'true']
588-
ShouldDeployBedrockBoto3Layer: !Or [
589-
!Equals [!Ref CallSummarization, 'BEDROCK'],
590-
!Equals [!Ref CallSummarization, 'BEDROCK+TCA'],
591-
!Equals [!Ref CallSummarization, 'TCA-ONLY'],
592-
!Equals [!Ref GenAIQuery, 'BEDROCK'],
593-
]
594588
ShouldDeployLLMThirdPartyApiKey: !And [!Not [!Equals [!Ref SummarizationLLMThirdPartyApiKey, '']], !Not [!Equals [!Ref SummarizationLLMThirdPartyApiKey, undefined]]]
595589
ShouldTestBedrockModelId: !And [
596590
!Or [
@@ -734,7 +728,7 @@ Resources:
734728
Properties:
735729
Handler: index.lambda_handler
736730
Role: !GetAtt 'TestBedrockModelFunctionRole.Arn'
737-
Runtime: python3.11
731+
Runtime: python3.13
738732
Timeout: 60
739733
MemorySize: 128
740734
Code:
@@ -744,9 +738,6 @@ Resources:
744738
import subprocess
745739
import os
746740
import sys
747-
print("install latest boto3 to get bedrock service support")
748-
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--target', '/tmp', 'boto3'])
749-
sys.path.insert(0,'/tmp')
750741
import boto3
751742
from botocore.config import Config
752743

@@ -905,12 +896,6 @@ Resources:
905896
Parameters:
906897
ParentStackName: !Ref 'AWS::StackName'
907898

908-
BedrockBoto3Layer:
909-
Type: AWS::CloudFormation::Stack
910-
Condition: ShouldDeployBedrockBoto3Layer
911-
Properties:
912-
TemplateURL: pca-boto3-bedrock/template.yaml
913-
914899
LLMThirdPartyApiKeySecret:
915900
Condition: ShouldDeployLLMThirdPartyApiKey
916901
Type: AWS::SecretsManager::Secret
@@ -942,10 +927,6 @@ Resources:
942927
- ''
943928
SummarizationLambdaFunctionArn: !Ref SummarizationLambdaFunctionArn
944929
PyUtilsLayerArn: !GetAtt PythonUtilsLayer.Outputs.PyUtilsLayer
945-
Boto3LayerArn: !If
946-
- ShouldDeployBedrockBoto3Layer
947-
- !GetAtt BedrockBoto3Layer.Outputs.Boto3Layer
948-
- ''
949930
LLMTableName: !GetAtt LLMPromptConfigure.Outputs.LLMTableName
950931

951932
PCAUI:
@@ -981,10 +962,6 @@ Resources:
981962
- !Ref LLMThirdPartyApiKeySecret
982963
- ''
983964
PyUtilsLayerArn: !GetAtt PythonUtilsLayer.Outputs.PyUtilsLayer
984-
Boto3LayerArn: !If
985-
- ShouldDeployBedrockBoto3Layer
986-
- !GetAtt BedrockBoto3Layer.Outputs.Boto3Layer
987-
- ''
988965
LLMTableName: !GetAtt LLMPromptConfigure.Outputs.LLMTableName
989966

990967
PcaDashboards:
@@ -1049,7 +1026,7 @@ Resources:
10491026
Condition: ShouldDeployPcaDashboards
10501027
Properties:
10511028
Handler: index.handler
1052-
Runtime: python3.11
1029+
Runtime: python3.13
10531030
Role: !GetAtt QuickSightEnabledCheckFunctionRole.Arn
10541031
Code:
10551032
ZipFile: !Sub |

pca-main.template

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.12) (uksb-1sn29lk73, SO9071)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.13) (uksb-1sn29lk73, SO9071)
44

55
Parameters:
66

@@ -626,12 +626,6 @@ Conditions:
626626
ShouldCreateKendraIndexDeveloperEdition: !Equals [!Ref EnableTranscriptKendraSearch, 'Yes, create new Kendra Index (Developer Edition)']
627627
ShouldDeployPcaDashboards: !Equals [!Ref EnablePcaDashboards, 'Yes']
628628
ShouldLoadSampleFiles: !Equals [!Ref loadSampleAudioFiles, 'true']
629-
ShouldDeployBedrockBoto3Layer: !Or [
630-
!Equals [!Ref CallSummarization, 'BEDROCK'],
631-
!Equals [!Ref CallSummarization, 'BEDROCK+TCA'],
632-
!Equals [!Ref CallSummarization, 'TCA-ONLY'],
633-
!Equals [!Ref GenAIQuery, 'BEDROCK'],
634-
]
635629
ShouldDeployLLMThirdPartyApiKey: !And [!Not [!Equals [!Ref SummarizationLLMThirdPartyApiKey, '']], !Not [!Equals [!Ref SummarizationLLMThirdPartyApiKey, undefined]]]
636630
ShouldTestBedrockModelId: !And [
637631
!Or [
@@ -917,7 +911,7 @@ Resources:
917911
Properties:
918912
Handler: index.lambda_handler
919913
Role: !GetAtt 'TestBedrockModelFunctionRole.Arn'
920-
Runtime: python3.11
914+
Runtime: python3.13
921915
Timeout: 60
922916
MemorySize: 128
923917
Code:
@@ -927,9 +921,6 @@ Resources:
927921
import subprocess
928922
import os
929923
import sys
930-
print("install latest boto3 to get bedrock service support")
931-
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--target', '/tmp', 'boto3'])
932-
sys.path.insert(0,'/tmp')
933924
import boto3
934925
from botocore.config import Config
935926

@@ -1090,12 +1081,6 @@ Resources:
10901081
Parameters:
10911082
ParentStackName: !Ref 'AWS::StackName'
10921083

1093-
BedrockBoto3Layer:
1094-
Type: AWS::CloudFormation::Stack
1095-
# Condition: ShouldDeployBedrockBoto3Layer
1096-
Properties:
1097-
TemplateURL: pca-boto3-bedrock/template.yaml
1098-
10991084
LLMThirdPartyApiKeySecret:
11001085
Condition: ShouldDeployLLMThirdPartyApiKey
11011086
Type: AWS::SecretsManager::Secret
@@ -1127,10 +1112,6 @@ Resources:
11271112
- ''
11281113
SummarizationLambdaFunctionArn: !Ref SummarizationLambdaFunctionArn
11291114
PyUtilsLayerArn: !GetAtt PythonUtilsLayer.Outputs.PyUtilsLayer
1130-
Boto3LayerArn: !If
1131-
- ShouldDeployBedrockBoto3Layer
1132-
- !GetAtt BedrockBoto3Layer.Outputs.Boto3Layer
1133-
- ''
11341115
LLMTableName: !GetAtt LLMPromptConfigure.Outputs.LLMTableName
11351116

11361117
PCAUI:
@@ -1167,10 +1148,6 @@ Resources:
11671148
- !Ref LLMThirdPartyApiKeySecret
11681149
- ''
11691150
PyUtilsLayerArn: !GetAtt PythonUtilsLayer.Outputs.PyUtilsLayer
1170-
Boto3LayerArn: !If
1171-
- ShouldDeployBedrockBoto3Layer
1172-
- !GetAtt BedrockBoto3Layer.Outputs.Boto3Layer
1173-
- ''
11741151
LLMTableName: !GetAtt LLMPromptConfigure.Outputs.LLMTableName
11751152

11761153
MediaSearchKendraFinder:
@@ -1249,7 +1226,7 @@ Resources:
12491226
Condition: ShouldDeployPcaDashboards
12501227
Properties:
12511228
Handler: index.handler
1252-
Runtime: python3.11
1229+
Runtime: python3.13
12531230
Role: !GetAtt QuickSightEnabledCheckFunctionRole.Arn
12541231
Code:
12551232
ZipFile: !Sub |

pca-samples/copy-samples.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Parameters:
2222

2323
Globals:
2424
Function:
25-
Runtime: python3.11
25+
Runtime: python3.13
2626
MemorySize: 1024
2727
Timeout: 60
2828

@@ -61,7 +61,7 @@ Resources:
6161
Properties:
6262
Code: ./src
6363
Handler: copy-samples.lambda_handler
64-
Runtime: python3.11
64+
Runtime: python3.13
6565
Timeout: 300
6666
Role: !GetAtt CopySamplesRole.Arn
6767
Environment:

0 commit comments

Comments
 (0)