Skip to content

Commit 1859468

Browse files
committed
Updates for release v2.1.0
1 parent 538a197 commit 1859468

File tree

405 files changed

+28812
-18446
lines changed

Some content is hidden

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

405 files changed

+28812
-18446
lines changed

CHANGELOG.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ 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+
## [2.1.0] - 2024-11-20
9+
10+
### Added
11+
12+
- Support for using Amazon Bedrock Agents ([#49](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues/49)).
13+
- Support for new LLMs available through Amazon Bedrock.
14+
- Support for [Bedrock cross-region inference profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html).
15+
- Support for using existing Amazon Cognito user pool configuration when deploying the application and its use cases ([#129](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/pull/129)).
16+
17+
### Changed
18+
19+
- Use [LCEL](https://python.langchain.com/docs/how_to/#langchain-expression-language-lcel) to replace LangChain `Chains` in the solution's implementation
20+
21+
### Fixed
22+
23+
- Fixed issue when removing a score threshold on an existing use case ([#154](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues/154)).
24+
25+
### Security
26+
27+
- Updated library versions to address security vulnerabilities
28+
829
## [2.0.4] - 2024-09-26
930

1031
### Security
@@ -31,8 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3152

3253
### Changed
3354

34-
- With the release of [AWS-Solutions-Constructs v2.65.0](https://github.com/awslabs/aws-solutions-constructs/tree/main/source/patterns/%40aws-solutions-constructs/aws-apigatewayv2websocket-sqs), the AWS ApiGateway websocket integration with Amazon SQS Queue is available in the library. Hence the
35-
implementation has been updated to use this construct.
55+
- With the release of [AWS-Solutions-Constructs v2.65.0](https://github.com/awslabs/aws-solutions-constructs/tree/main/source/patterns/%40aws-solutions-constructs/aws-apigatewayv2websocket-sqs), the AWS ApiGateway websocket integration with Amazon SQS Queue is available in the library. Hence the implementation has been updated to use this construct.
3656

3757
### Fixed
3858

@@ -223,4 +243,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
223243

224244
### Added
225245

226-
- Initial Release
246+
- Initial Release

NOTICE.txt

+73-8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This software includes third party software subject to the following copyrights:
2121
@aws-lambda-powertools/metrics MIT
2222
@aws-lambda-powertools/tracer MIT
2323
@aws-sdk/client-cloudformation Apache-2.0
24+
@aws-sdk/client-cognito-identity-provider Apache-2.0
2425
@aws-sdk/client-dynamodb Apache-2.0
2526
@aws-sdk/client-kendra Apache-2.0
2627
@aws-sdk/client-s3 Apache-2.0
@@ -39,18 +40,38 @@ This software includes third party software subject to the following copyrights:
3940
@aws-solutions-constructs/aws-wafwebacl-apigateway Apache-2.0
4041
@aws-solutions-constructs/core Apache-2.0
4142
@babel/plugin-proposal-private-property-in-object MIT
43+
@balena/dockerignore Apache-2.0
4244
@cloudscape-design/code-view Apache-2.0
4345
@cloudscape-design/components Apache-2.0
4446
@cloudscape-design/global-styles Apache-2.0
4547
@middy/core MIT
48+
@rollup/rollup-android-arm-eabi MIT
49+
@rollup/rollup-android-arm64 MIT
50+
@rollup/rollup-darwin-arm64 MIT
51+
@rollup/rollup-darwin-x64 MIT
52+
@rollup/rollup-linux-arm-gnueabihf MIT
53+
@rollup/rollup-linux-arm-musleabihf MIT
54+
@rollup/rollup-linux-arm64-gnu MIT
55+
@rollup/rollup-linux-arm64-musl MIT
56+
@rollup/rollup-linux-powerpc64le-gnu MIT
57+
@rollup/rollup-linux-riscv64-gnu MIT
58+
@rollup/rollup-linux-s390x-gnu MIT
59+
@rollup/rollup-linux-x64-gnu MIT
60+
@rollup/rollup-linux-x64-musl MIT
61+
@rollup/rollup-win32-arm64-msvc MIT
62+
@rollup/rollup-win32-ia32-msvc MIT
63+
@rollup/rollup-win32-x64-msvc MIT
4664
@smithy/types Apache-2.0
4765
@tabler/icons-react MIT
4866
@tailwindcss/typography MIT
67+
@tanstack/react-query-devtools MIT
4968
@tanstack/react-query MIT
5069
@tanstack/react-query-devtools MIT
5170
@testing-library/jest-dom MIT
5271
@testing-library/react MIT
5372
@testing-library/user-event MIT
73+
@typescript-eslint/eslint-plugin MIT
74+
@typescript-eslint/parser BSD-2-Clause
5475
@types/aws-lambda MIT
5576
@types/jest MIT
5677
@types/lodash MIT
@@ -73,44 +94,55 @@ aiohttp Apache-2.0
7394
aiosignal Apache-2.0
7495
annotated-types MIT
7596
anyio MIT
97+
aproba ISC
98+
are-we-there-yet ISC
99+
astral-regex MIT
76100
async-timeout Apache-2.0
77101
attrs MIT
78-
awscli Apache-2.0
79102
aws-amplify Apache-2.0
80103
aws-cdk-lib Apache-2.0
81104
aws-jwt-verify Apache-2.0
82105
aws-lambda-powertools==2.20.0 MIT
83106
aws-sdk-client-mock MIT
84107
aws-sdk-mock Apache-2.0
85108
aws-xray-sdk==2.12.0 Apache-2.0
109+
awscli Apache-2.0
86110
axios MIT
87111
black MIT
88112
boolean.py BSD-2-Clause
89113
bootstrap MIT
90114
boto3 Apache-2.0
91115
botocore Apache-2.0
92-
cdk Apache-2.0
116+
case MIT
93117
cdk-nag Apache-2.0
118+
cdk Apache-2.0
94119
certifi MPL 2.0
95120
cffi MIT
96121
charset-normalizer MIT
97122
click BSD License (BSD-3-Clause)
123+
color-support ISC
98124
colorama BSD License
125+
console-control-strings ISC
99126
constructs Apache-2.0
100127
coverage Apache-2.0
101128
cryptography Apache-2.0 OR BSD-3-Clause
102-
dataclasses Apache-2.0
103129
dataclasses-json MIT
104-
docutils BSD License
130+
dataclasses Apache-2.0
131+
deep-diff MIT
105132
distro Apache-2.0
133+
docutils BSD License
106134
eslint MIT
107135
exceptiongroup MIT
136+
fast-uri MIT
108137
filelock Unlicense
109138
freezegun Apache-2.0
110139
frozenlist Apache-2.0
140+
fs-extra MIT
111141
fsspec BSD
142+
gauge ISC
112143
greenlet MIT
113144
h11 MIT
145+
has-unicode ISC
114146
httpcore BSD License (BSD)
115147
httpx BSD License
116148
identity-obj-proxy MIT
@@ -119,23 +151,29 @@ importlib-metadata Apache-2.0
119151
iniconfig MIT
120152
isort MIT
121153
jest MIT
154+
Jinja2 BSD-3-Clause
122155
jmespath MIT
156+
json-schema-traverse MIT
123157
jsonpatch BSD License
124158
jsonpath-ng Apache2.0
125159
jsonpointer BSD License
126-
langchain MIT
160+
jsonschema MIT
127161
langchain-aws MIT
128162
langchain-core MIT
129163
langchain-text-splitters MIT
164+
langchain MIT
130165
langsmith MIT
131166
license-expression Apache-2.0
167+
lodash.truncate MIT
132168
lodash MIT
169+
MarkupSafe BSD-3-Clause
133170
marshmallow MIT
134-
mock BSD
135171
mock-fs MIT
172+
mock BSD
136173
moto Apache-2.0
137174
multidict Apache-2.0
138175
mypy-extensions MIT
176+
nanoid MIT
139177
npmlog ISC
140178
numexpr MIT
141179
numpy BSD-3-Clause
@@ -148,32 +186,42 @@ pluggy MIT
148186
ply BSD
149187
portfinder MIT
150188
prettier MIT
189+
propcache Apache-2.0
151190
pyasn1 BSD License (BSD-2-Clause)
152191
pycparser BSD
153192
pydantic MIT
154193
pydantic_core MIT
155-
pytest MIT
156194
pytest-cov MIT
157195
pytest-env MIT
158196
pytest-mock MIT
197+
pytest MIT
159198
python-dateutil Apache 2.0, BSD License
199+
PyYAML MIT
200+
react MIT
160201
react-bootstrap MIT
161202
react-markdown MIT
162203
react-router-dom MIT
163204
react-scripts MIT
164205
react-syntax-highlighter MIT
165206
react-test-renderer MIT
207+
rehype-external-links MIT
166208
remark-gfm MIT
167209
remark-math MIT
168210
rehype-external-links MIT
211+
requests-toolbelt Apache-2.0
169212
requests Apache-2.0
213+
require-from-string MIT
170214
responses Apache-2.0
215+
rollup MIT
171216
rsa Apache-2.0
172217
s3transfer Apache-2.0
173218
setuptools MIT
174219
six MIT
220+
slice-ansi MIT
175221
sniffio MIT OR Apache-2.0
176222
source-map-support MIT
223+
SQLAlchemy MIT
224+
table BSD-3-Clause
177225
tailwindcss MIT
178226
tenacity Apache-2.0
179227
tokenizers Apache-2.0
@@ -187,7 +235,24 @@ typing-inspect MIT
187235
typing_extensions Python 2.0
188236
urllib3 MIT
189237
uuid MIT
238+
Werkzeug BSD-3-Clause
239+
wide-align ISC
190240
wrapt BSD License
191241
xmltodict MIT
242+
PyYAML ISC
192243
yarl Apache-2.0
193-
zipp MIT
244+
zipp MIT
245+
246+
247+
********************
248+
OPEN SOURCE LICENSES
249+
********************
250+
251+
Apache-2.0 - https://spdx.org/licenses/Apache-2.0.html
252+
BSD-2-Clause - https://spdx.org/licenses/BSD-2-Clause.html
253+
BSD-3-Clause - https://spdx.org/licenses/BSD-3-Clause.html
254+
ISC - https://spdx.org/licenses/ISC.html
255+
MIT - https://spdx.org/licenses/MIT.html
256+
MPL-2.0 - https://spdx.org/licenses/MPL-2.0.html
257+
Python-2.0 - https://spdx.org/licenses/Python-2.0.html
258+
Unlicense - https://spdx.org/licenses/Unlicense.html

SECURITY.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
Reporting Security Issues
2-
----------------------------------------------------------------------------------------------------------
3-
We take all security reports seriously. When we receive such reports, we will investigate and subsequently address any potential vulnerabilities as quickly as possible. If you discover a potential security issue in this project, please notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to [AWS Security](mailto:[email protected]). Please do not create a public GitHub issue in this project.
1+
## Reporting Security Issues
2+
3+
We take all security reports seriously. When we receive such reports,
4+
we will investigate and subsequently address any potential vulnerabilities as
5+
quickly as possible. If you discover a potential security issue in this project,
6+
please notify AWS/Amazon Security via our [vulnerability reporting page]
7+
(http://aws.amazon.com/security/vulnerability-reporting/) or directly via email
8+
to [AWS Security](mailto:[email protected]).
9+
Please do _not_ create a public GitHub issue in this project.

deployment/build-s3-dist.sh

+1-1
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 v2.0.4 template-bucket-name"
43+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v2.1.0 template-bucket-name"
4444
exit 1
4545
fi
4646

deployment/run-unit-tests.sh

+2-19
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,6 @@ install_lambda_layer() {
5656

5757
setup_python_env
5858

59-
echo "Initiating virtual environment"
60-
source .venv-test/bin/activate
61-
62-
echo "------------------------------------------------------------------------------"
63-
echo "Check for vulnerabilities"
64-
pip install pip-audit
65-
pip-audit
66-
echo "------------------------------------------------------------------------------"
67-
68-
echo "deactivate virtual environment"
69-
deactivate
70-
7159
[ "${CLEAN:-true}" = "true" ] && rm -fr .venv-test
7260
}
7361

@@ -86,12 +74,6 @@ run_python_lambda_test() {
8674
echo "Initiating virtual environment"
8775
source .venv-test/bin/activate
8876

89-
echo "------------------------------------------------------------------------------"
90-
echo "Check for vulnerabilities"
91-
pip install pip-audit
92-
pip-audit
93-
echo "------------------------------------------------------------------------------"
94-
9577
# setup coverage report path
9678
mkdir -p $source_dir/test/coverage-reports
9779
coverage_report_path=$source_dir/test/coverage-reports/$lambda_name.coverage.xml
@@ -134,7 +116,7 @@ run_python_scripts_test() {
134116
echo "Check for vulnerabilities"
135117
pip install pip-audit
136118
pip-audit
137-
echo "------------------------------------------------------------------------------"
119+
echo "------------------------------------------------------------------------------"
138120

139121
# setup coverage report path
140122
mkdir -p $source_dir/test/coverage-reports
@@ -309,6 +291,7 @@ echo "Running unit test for lambda functions"
309291
echo "---------------------------------------"
310292

311293
run_python_lambda_test chat "Chat Use Case"
294+
run_python_lambda_test invoke-agent "Bedrock Agent"
312295
run_javascript_lambda_test custom-authorizer "Custom Authorizer"
313296
run_python_lambda_test custom-resource "Custom Resource"
314297
run_python_lambda_test ext-idp-group-mapper "IDP Group Mapper for Cognito JWT pre-token generation"

0 commit comments

Comments
 (0)