Skip to content

Commit 47b5f9d

Browse files
authored
Upgrade to version v2.1.7
### Security - Upgraded image-size to `1.2.1` - Upgraded aws-cdk-lib to `2.187.0` - Upgraded vite to `5.4.17` ### Fixed - Stack deployment failures performed through cdk deploy
2 parents 5917820 + b8dd2ac commit 47b5f9d

Some content is hidden

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

50 files changed

+486
-246
lines changed

CHANGELOG.md

Lines changed: 97 additions & 85 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ information to effectively respond to your bug report or contribution.
1010

1111
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1212

13-
When filing an issue, please check [existing open](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues), or [recently closed](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues?q=is%3Aissue+is%3Aclosed), issues to make sure somebody else hasn't already
13+
When filing an issue, please check [existing open](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues), or [recently closed](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
1414
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1515

1616
- A reproducible test case or series of steps
@@ -56,4 +56,4 @@ If you discover a potential security issue in this project we ask that you notif
5656

5757
See the [LICENSE](https://github.com/aws-solutions/generative-ai-application-builder-on-aws/blob/main/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
5858

59-
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
59+
We may ask you to sign a [Contributor License Agreement (CLA)](https://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

NOTICE.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ jest-util under the MIT license.
10111011
jest-validate under the MIT license.
10121012
jest-watcher under the MIT license.
10131013
jest-worker under the MIT license.
1014-
Jinja2 under the 0BSD license.
1014+
jinja2 under the 0BSD license.
10151015
jiti under the MIT license.
10161016
jmespath under the MIT license.
10171017
joi under the BSD-3-Clause license.
@@ -1080,7 +1080,7 @@ make-error under the ISC license.
10801080
makeerror under the BSD-3-Clause license.
10811081
map-obj under the MIT license.
10821082
markdown-table under the MIT license.
1083-
MarkupSafe under the 0BSD license.
1083+
markupsafe under the 0BSD license.
10841084
marky under the Apache-2.0 license.
10851085
mdast-util-find-and-replace under the MIT license.
10861086
mdast-util-from-markdown under the MIT license.
@@ -1262,7 +1262,7 @@ pytest under the MIT license.
12621262
pytest-cov under the MIT license.
12631263
pytest-env under the MIT license.
12641264
python-dateutil under the Dual License license(s).
1265-
PyYAML under the MIT license.
1265+
pyyaml under the MIT license.
12661266
qrcode under the MIT license.
12671267
querystring under the MIT license.
12681268
querystringify under the MIT license.
@@ -1365,7 +1365,7 @@ source-map-js under the BSD-3-Clause license.
13651365
source-map-support under the MIT license.
13661366
space-separated-tokens under the MIT license.
13671367
sprintf-js under the BSD-3-Clause license.
1368-
SQLAlchemy under the MIT license.
1368+
sqlalchemy under the MIT license.
13691369
stack-chain under the MIT license.
13701370
stack-utils under the MIT license.
13711371
stackback under the MIT license.
@@ -1482,7 +1482,7 @@ webidl-conversions under the BSD-2-Clause license.
14821482
webpack under the MIT license.
14831483
webpack-sources under the MIT license.
14841484
weekstart under the MIT license.
1485-
Werkzeug under the 0BSD license.
1485+
werkzeug under the 0BSD license.
14861486
whatwg-encoding under the MIT license.
14871487
whatwg-fetch under the MIT license.
14881488
whatwg-mimetype under the MIT license.
@@ -1517,6 +1517,7 @@ yocto-queue under the MIT license.
15171517
zen-observable under the MIT license.
15181518
zen-observable-ts under the MIT license.
15191519
zen-push under the MIT license.
1520+
zstandard under the BSD license.
15201521
zwitch under the MIT license.
15211522

15221523

@@ -1529,6 +1530,7 @@ Apache-2.0 - https://spdx.org/licenses/Apache-2.0.html
15291530
BlueOak-1.0.0 - https://spdx.org/licenses/BlueOak-1.0.0.html
15301531
BSD-2-Clause - https://spdx.org/licenses/BSD-2-Clause.html
15311532
BSD-3-Clause - https://spdx.org/licenses/BSD-3-Clause.html
1533+
CC0-1.0 - https://spdx.org/licenses/CC0-1.0.html
15321534
CC-BY-4.0 - https://spdx.org/licenses/CC-BY-4.0.html
15331535
ISC - https://spdx.org/licenses/ISC.html
15341536
MIT - https://spdx.org/licenses/MIT.html

THIRD_PARTY_LICENSES.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
jackspeak
2+
3.4.3 <https://github.com/isaacs/jackspeak>
3+
4+
package-json-from-dist
5+
1.0.0 / 1.0.1 <https://github.com/isaacs/package-json-from-dist>
6+
7+
path-scurry
8+
1.11.1 <https://github.com/isaacs/path-scurry>
9+
10+
# BlueOak-1.0.0 License
11+
12+
Version 1.0.0
13+
14+
## Purpose
15+
16+
This license gives everyone as much permission to work with
17+
this software as possible, while protecting contributors
18+
from liability.
19+
20+
## Acceptance
21+
22+
In order to receive this license, you must agree to its
23+
rules. The rules of this license are both obligations
24+
under that agreement and conditions to your license.
25+
You must not do anything with this software that triggers
26+
a rule that you cannot or will not follow.
27+
28+
## Copyright
29+
30+
Each contributor licenses you to do everything with this
31+
software that would otherwise infringe that contributor's
32+
copyright in it.
33+
34+
## Notices
35+
36+
You must ensure that everyone who gets a copy of
37+
any part of this software from you, with or without
38+
changes, also gets the text of this license or a link to
39+
<https://blueoakcouncil.org/license/1.0.0>.
40+
41+
## Excuse
42+
43+
If anyone notifies you in writing that you have not
44+
complied with [Notices](#notices), you can keep your
45+
license by taking all practical steps to comply within 30
46+
days after the notice. If you do not do so, your license
47+
ends immediately.
48+
49+
## Patent
50+
51+
Each contributor licenses you to do everything with this
52+
software that would otherwise infringe any patent claims
53+
they can license or become able to license.
54+
55+
## Reliability
56+
57+
No contributor can revoke this license.
58+
59+
## No Liability
60+
61+
**_As far as the law allows, this software comes as is,
62+
without any warranty or condition, and no contributor
63+
will be liable to anyone for any damages related to this
64+
software or this license, under any kind of legal claim._**

deployment/build-s3-dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set -e
3030
# Check to see if input has been provided:
3131
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]; then
3232
echo "Please provide all required parameters for the build script"
33-
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v2.1.6 template-bucket-name"
33+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v2.1.7 template-bucket-name"
3434
exit 1
3535
fi
3636

@@ -66,7 +66,7 @@ echo "--------------------------------------------------------------------------
6666
cd $source_dir/infrastructure
6767

6868
# Important: CDK global version number
69-
cdk_version=$(node ../../deployment/get-cdk-version.js) # Note: grabs from node_modules/aws-cdk-lib/package.json
69+
cdk_version=$(node ../../deployment/get-cdk-version.js) # Note: grabs from node_modules/aws-cdk/package.json
7070

7171
echo "------------------------------------------------------------------------------"
7272
echo "[Install] Installing CDK $cdk_version"

deployment/get-cdk-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
const pkg = require("../source/infrastructure/node_modules/aws-cdk-lib/package.json");
4+
const pkg = require("../source/infrastructure/node_modules/aws-cdk/package.json");
55
console.log(pkg.version);

source/infrastructure/bin/gen-ai-app-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function createStack(stack: typeof BaseStack, props?: BaseStackProps, isUseCase?
7777
function getDefaultBaseStackProps(stack: typeof BaseStack, isUseCase?: boolean): BaseStackProps {
7878
return {
7979
description: isUseCase
80-
? `(${solutionID})-${stack.name} - ${solutionName} - ${stack.name} - Version ${version}`
80+
? `(${solutionID}) - ${stack.name} - ${solutionName} - ${stack.name} - Version ${version}`
8181
: `(${solutionID}) - ${solutionName} - ${stack.name} - Version ${version}`,
8282
synthesizer: new cdk.DefaultStackSynthesizer({
8383
generateBootstrapVersionRule: false

source/infrastructure/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@custom-bundler/unit-test": false,
6464
"solution_id": "SO0276",
6565
"solution_name": "generative-ai-application-builder-on-aws",
66-
"solution_version": "v2.1.2",
66+
"solution_version": "v2.1.7",
6767
"app_registry_name": "GAAB",
6868
"application_type": "AWS-Solutions",
6969
"application_trademark_name": "Generative AI Application Builder on AWS",

source/infrastructure/lib/framework/base-nested-stack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export abstract class BaseNestedStack extends cdk.NestedStack {
2525
public readonly accessLoggingBucket: string;
2626

2727
constructor(scope: Construct, id: string, props?: cdk.NestedStackProps) {
28-
super(scope, id, props);
28+
const solutionID = process.env.SOLUTION_ID ?? scope.node.tryGetContext('solution_id');
29+
const solutionName = process.env.SOLUTION_NAME ?? scope.node.tryGetContext('solution_name');
30+
super(scope, id, {...props, description: `(${solutionID}-Nested) - ${solutionName} - ${props?.description || ''}`});
2931
const stack = cdk.Stack.of(this);
3032
this.customResourceLambdaArn = new cdk.CfnParameter(stack, 'CustomResourceLambdaArn', {
3133
type: 'String',

source/infrastructure/package-lock.json

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

0 commit comments

Comments
 (0)