aws-samples / aws-samples/bedrock-chat

[BUG]The default value of enableLambdaSnapStart in cdk.json is "True".

Open
#766 1 comment 0 reactions 0 assignees View on GitHub
documentation
Dominant language
TypeScript
Stars
1.3k
Forks
535
Avg merge
1d 12h
Merged PRs (30d)
10

Description

## 🐞Bug description

The following is written in the Optional Parameters section of the README.

> - **--enable-lambda-snapstart**: Enable [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) (default: disabled). If this flag is set, improves cold start times for Lambda functions, providing faster response times for better user experience.

However, the value of enableLambdaSnapStart in cdk.json is true, so I think the default should be true or the value in cdk.json is incorrect.

Snap start is enabled if you deploy with `npx cdk deploy` instead of ./bin.sh.

Contributor guide

Open the contributing guide

Research direction

Compare the README's Optional Parameters section with enableLambdaSnapStart in cdk.json and the deployment behavior described for npx cdk deploy versus ./bin.sh. Determine the intended default, align the documented and configured values, and verify both deployment paths use the same setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.