Skip to content

Commit b59457d

Browse files
authored
Updates to version v1.3.2
### Security - Updated langchain package versions to resolve a vulnerability
2 parents c81ca8b + 0f9b786 commit b59457d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+976
-803
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.2] - 2024-03-07
9+
10+
### Security
11+
12+
- Updated langchain package versions to resolve a vulnerability
13+
814
## [1.3.1] - 2024-02-26
915

1016
### Fixed

deployment/build-s3-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set -e
4040
# Check to see if input has been provided:
4141
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]; then
4242
echo "Please provide all required parameters for the build script"
43-
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v1.3.0 template-bucket-name"
43+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v1.3.2 template-bucket-name"
4444
exit 1
4545
fi
4646

source/infrastructure/cdk.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"app": "../pre-build-lambda-layers.sh && npx ts-node --prefer-ts-exts bin/gen-ai-app-builder.ts",
33
"watch": {
4-
"include": [
5-
"**"
6-
],
4+
"include": ["**"],
75
"exclude": [
86
"README.md",
97
"cdk*.json",
@@ -19,10 +17,7 @@
1917
"context": {
2018
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
2119
"@aws-cdk/core:checkSecretUsage": true,
22-
"@aws-cdk/core:target-partitions": [
23-
"aws",
24-
"aws-cn"
25-
],
20+
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
2621
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
2722
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
2823
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
@@ -62,9 +57,9 @@
6257
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
6358
"solution_id": "SO0276",
6459
"solution_name": "generative-ai-application-builder-on-aws",
65-
"solution_version": "v1.3.0",
60+
"solution_version": "v1.3.2",
6661
"app_registry_name": "GAAB",
6762
"application_type": "AWS-Solutions",
6863
"application_trademark_name": "Generative AI Application Builder on AWS"
6964
}
70-
}
65+
}

source/infrastructure/lib/hugging-face-chat-stack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export class HuggingFaceChat extends ExternalUseCaseChat {
6060
handler: 'huggingface_handler.lambda_handler',
6161
timeout: cdk.Duration.minutes(LAMBDA_TIMEOUT_MINS),
6262
environment: {
63-
POWERTOOLS_SERVICE_NAME: 'HUGGINGFACE_CHAT'
63+
POWERTOOLS_SERVICE_NAME: 'HUGGINGFACE_CHAT',
64+
HF_HOME: '/tmp' // huggingface_hub internally caches tokens here, so we need a path accessible in lambda
6465
},
6566
memorySize: 256,
6667
description: 'Lambda serving the websocket based API for HuggingFace chat'

source/infrastructure/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/infrastructure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gen-ai-app-builder-on-aws-infrastructure",
3-
"version": "1.3.0",
3+
"version": "1.3.2",
44
"bin": {
55
"infrastructure": "bin/gen-ai-app-builder.js"
66
},

source/infrastructure/test/hugging-face-chat-stack.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ describe('When Chat use case is created', () => {
3535
'Timeout': 900,
3636
'Environment': {
3737
'Variables': {
38+
'POWERTOOLS_SERVICE_NAME': 'HUGGINGFACE_CHAT',
39+
'HF_HOME': '/tmp',
3840
'CONVERSATION_TABLE_NAME': {
3941
'Fn::GetAtt': [
4042
Match.stringLikeRegexp(

source/infrastructure/test/mock-lambda-func/node-lambda/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/infrastructure/test/mock-lambda-func/node-lambda/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-lambda",
3-
"version": "1.3.0",
3+
"version": "1.3.2",
44
"description": "A mock lambda implementation for CDK infrastructure unit",
55
"main": "index.js",
66
"scripts": {
@@ -17,4 +17,4 @@
1717
"url": "https://aws.amazon.com/solutions"
1818
},
1919
"license": "Apache-2.0"
20-
}
20+
}

source/infrastructure/test/mock-lambda-func/python-lambda/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mock-lambda-function"
3-
version = "1.3.0"
3+
version = "1.3.2"
44
authors = [ "Amazon Web Services" ]
55
description = "Mock lambda implementation to unit test infrastructure code"
66
packages = [

0 commit comments

Comments
 (0)