You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -500,6 +500,26 @@ By default, this sample does not restrict the domains for sign-up email addresse
500
500
501
501
This sample supports external identity provider. Currently we support [Google](./docs/idp/SET_UP_GOOGLE.md) and [custom OIDC provider](./docs/idp/SET_UP_CUSTOM_OIDC.md).
502
502
503
+
### Optional Frontend WAF
504
+
505
+
For CloudFront distributions, AWS WAF WebACLs must be created in the us-east-1 region. In some organizations, creating resources outside the primary region is restricted by policy. In such environments, CDK deployment can fail when attempting to provision the Frontend WAF in us-east-1.
506
+
507
+
To accommodate these restrictions, the Frontend WAF stack is optional. When disabled, the CloudFront distribution is deployed without a WebACL. This means you won’t have IP allow/deny controls at the frontend edge. Authentication and all other application controls continue to work as usual. Note that this setting only affects the Frontend WAF (CloudFront scope); the Published API WAF (regional) remains unaffected.
508
+
509
+
To disable the Frontend WAF set the following in `parameter.ts` (Recommended Type-Safe Method):
510
+
511
+
```ts
512
+
bedrockChatParams.set("default", {
513
+
enableFrontendWaf: false
514
+
});
515
+
```
516
+
517
+
Or if using the legacy `cdk/cdk.json` set the following:
518
+
519
+
```json
520
+
"enableFrontendWaf": false
521
+
```
522
+
503
523
### Add new users to groups automatically
504
524
505
525
This sample has the following groups to give permissions to users:
// The region of the LLM model called by the converse API and the region of Guardrail must be in the same region.
49
55
// CustomBotStack contains Knowledge Bases is deployed in the same region as the LLM model, and source bucket must be in the same region as Knowledge Bases.
@@ -73,8 +79,8 @@ const chat = new BedrockChatStack(
0 commit comments