Skip to content

Commit 71d1e97

Browse files
authored
Upgrades to version v3.0.3
### Fixed - Bug where oversized limit WAF rule was preventing update of use cases deployed with very large prompts. - Removed model-info files for unsupported mistral models to remove from quick start list.
2 parents 5093f24 + 07c100a commit 71d1e97

File tree

46 files changed

+139
-80
lines changed

Some content is hidden

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

46 files changed

+139
-80
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+
## [3.0.3] - 2025-07-31
9+
10+
### Fixed
11+
- Bug where oversized limit WAF rule was preventing update of use cases deployed with very large prompts.
12+
- Removed model-info files for unsupported mistral models to remove from quick start list.
13+
814
## [3.0.2] - 2025-07-24
915

1016
### Security

deployment/build-s3-dist.sh

Lines changed: 1 addition & 1 deletion
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 v3.0.1 template-bucket-name"
33+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v3.0.3 template-bucket-name"
3434
exit 1
3535
fi
3636

source/infrastructure/lib/api/base-rest-endpoint.ts

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Construct } from 'constructs';
99
import {
1010
CUSTOM_RULE_PRIORITY,
1111
HEADERS_NOT_ALLOWED_KEY,
12-
INVALID_REQUEST_HEADER_RESPONSE_CODE,
12+
INVALID_REQUEST_HEADER_RESPONSE_CODE
1313
} from '../utils/constants';
1414

1515
import { WafwebaclToApiGateway } from '@aws-solutions-constructs/aws-wafwebacl-apigateway';
@@ -200,18 +200,39 @@ export abstract class BaseRestEndpoint extends Construct {
200200
{
201201
notStatement: {
202202
statement: {
203-
byteMatchStatement: {
204-
searchString: '/deployments',
205-
fieldToMatch: {
206-
uriPath: {}
207-
},
208-
textTransformations: [
203+
orStatement: {
204+
statements: [
209205
{
210-
priority: 0,
211-
type: 'NONE'
206+
byteMatchStatement: {
207+
searchString: '/deployments',
208+
fieldToMatch: {
209+
uriPath: {}
210+
},
211+
textTransformations: [
212+
{
213+
priority: 0,
214+
type: 'NONE'
215+
}
216+
],
217+
positionalConstraint: 'ENDS_WITH'
218+
}
219+
},
220+
{
221+
regexMatchStatement: {
222+
fieldToMatch: {
223+
uriPath: {}
224+
},
225+
regexString:
226+
'/deployments/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
227+
textTransformations: [
228+
{
229+
priority: 0,
230+
type: 'NONE'
231+
}
232+
]
233+
}
212234
}
213-
],
214-
positionalConstraint: 'ENDS_WITH'
235+
]
215236
}
216237
}
217238
}

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": "@amzn/gen-ai-app-builder-on-aws-infrastructure",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"bin": {
55
"infrastructure": "bin/gen-ai-app-builder.js"
66
},

source/infrastructure/test/api/deployment-platform-rest-endpoint.test.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,27 @@ describe('When creating rest endpoints', () => {
600600
{
601601
'NotStatement': {
602602
'Statement': {
603-
'ByteMatchStatement': {
604-
'FieldToMatch': { 'UriPath': {} },
605-
'PositionalConstraint': 'ENDS_WITH',
606-
'SearchString': '/deployments',
607-
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
603+
'OrStatement': {
604+
'Statements': [
605+
{
606+
'ByteMatchStatement': {
607+
'FieldToMatch': { 'UriPath': {} },
608+
'PositionalConstraint': 'ENDS_WITH',
609+
'SearchString': '/deployments',
610+
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
611+
}
612+
},
613+
{
614+
'RegexMatchStatement': {
615+
'FieldToMatch': {
616+
'UriPath': {}
617+
},
618+
'RegexString':
619+
'/deployments/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
620+
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
621+
}
622+
}
623+
]
608624
}
609625
}
610626
}

source/infrastructure/test/api/use-case-rest-endpoint.test.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,27 @@ describe('NewUseCaseRestEndpointDeployment', () => {
428428
{
429429
'NotStatement': {
430430
'Statement': {
431-
'ByteMatchStatement': {
432-
'FieldToMatch': { 'UriPath': {} },
433-
'PositionalConstraint': 'ENDS_WITH',
434-
'SearchString': '/deployments',
435-
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
431+
'OrStatement': {
432+
'Statements': [
433+
{
434+
'ByteMatchStatement': {
435+
'FieldToMatch': { 'UriPath': {} },
436+
'PositionalConstraint': 'ENDS_WITH',
437+
'SearchString': '/deployments',
438+
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
439+
}
440+
},
441+
{
442+
'RegexMatchStatement': {
443+
'FieldToMatch': {
444+
'UriPath': {}
445+
},
446+
'RegexString':
447+
'/deployments/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
448+
'TextTransformations': [{ 'Priority': 0, 'Type': 'NONE' }]
449+
}
450+
}
451+
]
436452
}
437453
}
438454
}

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amzn/node-lambda",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "A mock lambda implementation for CDK infrastructure unit",
55
"main": "index.js",
66
"scripts": {

source/infrastructure/test/mock-lambda-func/python-lambda/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)