AWS WAF Configuration
AWS WAF (Web Application Firewall) protects your Bedrock Chat deployment from common web exploits.Frontend WAF (CloudFront)
Controls access to the CloudFront distribution serving the frontend application.Enable or disable AWS WAF for the CloudFront distribution. When enabled, creates a WebACL in the us-east-1 region.
Frontend WAF must be created in us-east-1 region (CloudFront requirement). If your organization restricts creating resources outside the primary region, set this to
false. Authentication and application controls continue to work without the WAF.Published API WAF
Controls access to published bot APIs (regional scope).IPv4 CIDR ranges allowed to access published bot APIs.
IPv6 CIDR ranges allowed to access published bot APIs.
IP Address Restrictions
Restrict access to Bedrock Chat by IP address ranges.IPv4 Restrictions
List of IPv4 CIDR ranges allowed to access the application. Default allows all IPv4 addresses.
IPv6 Restrictions
List of IPv6 CIDR ranges allowed to access the application. Default allows all IPv6 addresses.
IPv6 Support
Enable or disable IPv6 support for the CloudFront distribution. When disabled, the application is only accessible via IPv4.
Geographic Restrictions
Restrict access based on the geographic location of users.List of ISO 3166-1 alpha-2 country codes allowed to access the application. Empty array allows all countries.
Deployment Script Security Options
When deploying withbin.sh, you can specify security options:
Available Security Flags
Disable self-registration. Users must be created manually through Cognito.
Comma-separated list of allowed IPv4 CIDR ranges.
Comma-separated list of allowed IPv6 CIDR ranges.
Disable IPv6 connections entirely.
Comma-separated list of allowed email domains for sign-up.
Production Security Recommendations
Custom Domain Configuration
Configure a custom domain with SSL/TLS certificate.Custom domain name for the CloudFront distribution (e.g.,
chat.example.com).Route 53 hosted zone ID where DNS records will be created.
- Creates an ACM certificate with DNS validation in us-east-1
- Creates DNS records in Route 53
- Configures CloudFront to use the custom domain
The domain must be managed by Route 53 in your AWS account. Find the hosted zone ID in the Route 53 console.
CDK JSON Override
Override security settings during deployment without modifying configuration files:cdk.json.