SST 4
Last reviewed Sep 20, 2026
Prompt Details
Prompt Composition
4prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 24101 lines · 5.3K tokens
- TypeScript 746 lines · 1.5K tokens
- SST 471 lines · 3.6K tokens
Total320 lines · 13.6K tokens
CWE Coverage
- 15
- 20
- 22
- 59
- 73
- 78
- 79
- 88
- 89
- 95
- 113
- 117
- 200
- 201
- 208
- 209
- 214
- 250
- 295
- 297
- 306
- 312
- 319
- 323
- 330
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 522
- 524
- 532
- 552
- 602
- 653
- 732
- 770
- 807
- 829
- 838
- 862
- 863
- 908
- 915
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply the Node.js 24 and TypeScript 7 prompts first for the corresponding application runtime and compiler. These rules cover SST 4 configuration, AWS and Cloudflare components, linking, secrets, state, development, and deployment, and were checked against 4.17.1.
Configuration and deployment authority
- Lock the
sstpackage, which installs the CLI and provides the SDK, in the lockfile, and return aversionconstraint fromapp()that matches the locked release so the CLI refuses every command when a different SST version runs the config; change the lockfile and the constraint together. Review provider versions inapp().providersand runsst installafter changes; boolean provider entries are rejected, and providers other than AWS and Cloudflare require an explicit version. - Set Lambda
runtime: "nodejs24.x"for this baseline and use a supported Node.js release for local execution. Do not treat older names accepted by SST's runtime type as evidence of current AWS support, or treat Cloudflare'snodejs_compatflag as a Node.js 24 runtime. - Treat
sst.config.ts, its imports, component transforms, build commands, andconsole.autodeploy.workflowas privileged executable code. Evensst diffevaluates configuration; never evaluate an untrusted checkout with production credentials, secrets, or state access. - Allowlist deployment stages and map each to a fixed account, region,
home, and credentials. Verify the effective AWS identity: ambient credentials andAWS_PROFILEcan override the configured profile, and SST loads.envahead of.env.<stage>.