Parameter Configuration Methods
You can configure parameters in three ways:bin.sh flags
Command-line flags for CloudShell deployment
cdk.json
Traditional JSON configuration file
parameter.ts
Type-safe TypeScript configuration (recommended)
Security Parameters
selfSignUpEnabled
Controls whether users can register accounts themselves.- Type:
boolean - Default:
true - bin.sh flag:
--disable-self-register
allowedIpV4AddressRanges
IPv4 CIDR ranges allowed to access the application.- Type:
string[] - Default:
["0.0.0.0/1", "128.0.0.0/1"](all IPv4 addresses) - bin.sh flag:
--ipv4-ranges
allowedIpV6AddressRanges
IPv6 CIDR ranges allowed to access the application.- Type:
string[] - Default:
["0000:0000:0000:0000:0000:0000:0000:0000/1", "8000:0000:0000:0000:0000:0000:0000:0000/1"] - bin.sh flag:
--ipv6-rangesor--disable-ipv6
allowedSignUpEmailDomains
Restrict sign-up to specific email domains.- Type:
string[] - Default:
[](no restriction) - bin.sh flag:
--allowed-signup-email-domains
allowedCountries
Restrict access by country using geo-blocking.- Type:
string[](ISO-3166 alpha-2 country codes) - Default:
[](no restriction)
publishedApiAllowedIpV4AddressRanges
IPv4 CIDR ranges allowed to access published bot APIs.- Type:
string[] - Default:
["0.0.0.0/1", "128.0.0.0/1"]
publishedApiAllowedIpV6AddressRanges
IPv6 CIDR ranges allowed to access published bot APIs.- Type:
string[] - Default:
["0000:0000:0000:0000:0000:0000:0000:0000/1", "8000:0000:0000:0000:0000:0000:0000:0000/1"]
AWS Region Parameters
bedrockRegion
AWS region where Bedrock API calls are made.- Type:
string - Default:
"us-east-1" - bin.sh flag:
--bedrock-region
enableBedrockCrossRegionInference
Enable cross-region inference routing within the same region group.- Type:
boolean - Default:
true
enableBedrockGlobalInference
Enable global inference routing across all regions.- Type:
boolean - Default:
true
Some Service Control Policies may restrict cross-region inference. Disable these if needed.
Performance Parameters
enableLambdaSnapStart
Enable Lambda SnapStart for faster cold starts.- Type:
boolean - Default:
true(incdk.json),false(inbin.sh) - bin.sh flag:
--enable-lambda-snapstart
enableRagReplicas
Enable additional replicas for OpenSearch Serverless (RAG database).- Type:
boolean - Default:
true
This is an account/region-level setting affecting the entire application, not individual bots.
Authentication Parameters
identityProviders
External identity providers for authentication.- Type:
TIdentityProvider[] - Default:
[]
- Custom OIDC provider
See the authentication configuration guide for detailed setup instructions.
userPoolDomainPrefix
Cognito user pool domain prefix.- Type:
string - Default:
""
autoJoinUserGroups
Groups that new users automatically join.- Type:
string[] - Default:
["CreatingBotAllowed"]
CreatingBotAllowed: Can create custom botsPublishAllowed: Can publish bots as APIsAdmin: Administrative access
tokenValidMinutes
ID token refresh interval in minutes.- Type:
number - Default:
30
Model Configuration Parameters
globalAvailableModels
List of model IDs available globally across the application.- Type:
string[] - Default:
[](all models enabled)
- Claude:
claude-v4-opus,claude-v4.1-opus,claude-v4.5-opus,claude-v4-sonnet,claude-v3.5-sonnet,claude-v3.5-sonnet-v2,claude-v3.7-sonnet,claude-v3.5-haiku,claude-v3-haiku,claude-v3-opus - Amazon Nova:
amazon-nova-pro,amazon-nova-lite,amazon-nova-micro - Mistral:
mistral-7b-instruct,mixtral-8x7b-instruct,mistral-large,mistral-large-2 - DeepSeek:
deepseek-r1 - Llama:
llama3-3-70b-instruct,llama3-2-1b-instruct,llama3-2-3b-instruct,llama3-2-11b-instruct,llama3-2-90b-instruct
defaultModel
Model pre-selected when users start a new chat.- Type:
string - Default:
"claude-v3.7-sonnet"(hardcoded fallback)
titleModel
Model used for generating conversation titles.- Type:
string - Default: Falls back to
defaultModel, then"claude-v3-haiku"
Bot Store Parameters
enableBotStore
Enable the bot store feature.- Type:
boolean - Default:
true
enableBotStoreReplicas
Enable standby replicas for bot store OpenSearch collection.- Type:
boolean - Default:
false
botStoreLanguage
Primary language for bot search and indexing.- Type:
string - Default:
"en"
"en"- English"de"- German"fr"- French"es"- Spanish"ja"- Japanese"ko"- Korean"zhhans"- Chinese (Simplified)"zhhant"- Chinese (Traditional)"it"- Italian"nb"- Norwegian"th"- Thai"id"- Indonesian"ms"- Malay
Frontend Parameters
enableFrontendWaf
Enable AWS WAF for CloudFront distribution.- Type:
boolean - Default:
true
CloudFront Web ACLs must be created in us-east-1. Disable this if your organization restricts resource creation outside your primary region.
enableFrontendIpv6
Enable IPv6 support for CloudFront distribution.- Type:
boolean - Default:
true
logoPath
Relative path to logo image underfrontend/public/.
- Type:
string - Default:
""
frontend/public/images/my-company-logo.png.
Domain Configuration Parameters
alternateDomainName
Custom domain name for the CloudFront distribution.- Type:
string - Default:
""
hostedZoneId
Route 53 hosted zone ID for the custom domain.- Type:
string - Default:
""
When both parameters are provided, CDK automatically creates an ACM certificate with DNS validation and configures CloudFront to use your custom domain.
Storage Parameters
bucketPrefix
Prefix for all S3 bucket names.- Type:
string - Default:
"" - Format: Lowercase alphanumeric + hyphens only
mycompany-access-logs, mycompany-codebuild-source, etc.
Environment Parameters
envName
Environment name for multi-environment deployments.- Type:
string - Default:
"default" - Max Length: 10 characters
- Format: Alphanumeric, must start with letter
envPrefix
Prefix automatically derived fromenvName.
- Type:
string - Default:
""(for “default”), or same asenvName
Development Parameters
devAccessIamRoleArn
IAM role ARN for development access (debugging).- Type:
string - Default:
""
CDK JSON Override
The--cdk-json-override flag allows overriding any parameter during CloudShell deployment.
Usage:
The override JSON must follow the same structure as
cdk.json. Override values take precedence over values in cdk.json.Parameter Priority
When parameters are defined in multiple places, this is the priority order (highest to lowest):--cdk-json-override(CloudShell deployment only)parameter.ts(if environment is defined)cdk.jsoncontext values- Default values in schema
Examples by Use Case
Production Deployment
Development Environment
High-Security Deployment
Next Steps
CloudShell Deployment
Use parameters with CloudShell deployment
CDK Deployment
Configure parameters for CDK deployment
Multi-Environment
Set up environment-specific parameters
Security Guide
Security configuration best practices