

# CDK Stack Parameters
<a name="stack-parameters"></a>

The following table lists the parameters for the stack.


| Parameter | Default | Description | 
| --- | --- | --- | 
|  **PrebidServerContainerImage**  |  `public.ecr.aws/aws-solutions/prebid-server:{solution version}`  | The fully qualified name of the Prebid Server container image to deploy. Set the env variable OVERRIDE\_ECR\_REGISTRY to point the deployment to a custom container registry. | 
|  **deploy\_cloudfront\_and\_waf\_param**  |  `Yes`  | Specifies whether to deploy a CloudFront distribution. If you set it to `Yes`, the solution creates and configures a CloudFront distribution to serve your content. If you set it to `No`, provide your own SSL certificate. | 
|  **ssl\_certificate\_param**  |  *Optional*  | The ARN of an SSL certificate in AWS Certificate Manager associated with a domain name. This field is only required if **deploy\_cloudfront\_and\_waf\_param** is set to `No`. | 
|  **ECSTaskMinCapacity**  |  *2*  | The minimum number of running tasks that Amazon ECS will maintain for the Prebid Server service when ECS is autoscaling based on traffic, CPU, and memory utilization. | 
|  **ECSTaskMaxCapacity**  |  *300*  | The maximum number of running tasks that Amazon ECS will maintain for the Prebid Server service when ECS is autoscaling based on traffic, CPU, and memory utilization. | 
|  **RequestsPerTargetThreshold**  |  *5000*  | The number of requests per target to trigger scaling up the Prebid Server ECS service. | 
|  **SpotInstanceWeight**  |  *1*  | Spot instance weight configuration (On-demand weight fixed at 1). | 
|  **deployBiddingSimulator**  |  `false`  | CDK context flag to deploy the optional bidder simulator stack. Set via `--context deployBiddingSimulator=true` or use the `--deploy-bidding-simulator` flag with deploy.sh script. | 
|  **enableLogAnalytics**  |  `false`  | CDK context flag to enable the custom analytics adapter for detailed auction-level data collection. Set via `--context enableLogAnalytics=true` or use the `--enable-log-analytics` flag with deploy.sh script. | 
|  **includeRtbFabric**  |  `false`  | CDK context flag to enable AWS RTB Fabric integration for private network connectivity. Requires `deployBiddingSimulator=true`. Set via `--context includeRtbFabric=true` or use the `--include-rtb-fabric` flag with deploy.sh script. | 

**Note**  
CloudFront distribution is the recommended configuration for this solution because this configuration provides enhanced security and performance. Refer to the [Opt out of using CloudFront and AWS WAF](configure-the-solution.md#opt-out-of-cloudfront-and-waf) section for more information about the benefits of using CloudFront and AWS WAF together, and steps to disable CloudFront and AWS WAF if desired.