You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document lws init, Claude Code slash commands, Lambda Function URLs, and --background flag
Add Claude Code Integration section to getting-started.html documenting
lws init, /lws:mock and /lws:chaos slash commands. Add Lambda Function URL
support to services.html (FunctionUrl construct, CORS, invoke modes). Add
--background flag and ldk stop command to cli.html. Add lws init command
card to CLI reference.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
<li><code>--project-dir, -d</code><span>Project root directory (default: current directory)</span></li>
47
47
<li><code>--mode, -m</code><span>Project mode: cdk or terraform (default: auto-detect from project files)</span></li>
48
+
<li><code>--background, -b</code><span>Run in the background as a detached process. Logs are written to <code>.lws/ldk-dev.log</code>. Stop with <code>ldk stop</code>.</span></li>
49
+
</ul>
50
+
</div>
51
+
52
+
<divclass="cli-detail">
53
+
<divclass="code-block"><code>uvx --from local-web-services ldk stop [OPTIONS]</code></div>
54
+
<h3>ldk stop</h3>
55
+
<p>Stop a background <code>ldk dev</code> session. Sends a graceful shutdown signal via the management API.</p>
56
+
<ulclass="option-list">
57
+
<li><code>--port, -p</code><span>Port of the running ldk dev instance to stop (default: 3000)</span></li>
48
58
</ul>
49
59
</div>
50
60
@@ -95,6 +105,15 @@ <h2>LWS Commands</h2>
95
105
<pclass="section-lead">AWS CLI-style commands for interacting with your local services. Requires a running <code>ldk dev</code> instance.</p>
96
106
97
107
<divclass="lws-command-grid">
108
+
<divclass="lws-command">
109
+
<h4>lws init</h4>
110
+
<p>Initialize Claude Code integration. Creates CLAUDE.md context and slash commands for AI-assisted mock and chaos workflows.</p>
<p>Guides Claude through creating and configuring AWS operation mocks. Supports file-based mocks (persist across restarts) and runtime mocks (configured on the fly). Includes service-aware helpers for DynamoDB JSON, S3 XML, SQS messages, and more.</p>
199
+
</div>
200
+
<divclass="feature-card">
201
+
<divclass="feature-icon">/</div>
202
+
<h3>/lws:chaos</h3>
203
+
<p>Guides Claude through enabling chaos engineering on AWS services. Configure error rates, latency injection, timeouts, and connection resets. Includes common scenarios for testing retry logic, circuit breakers, and timeout handling.</p>
<p>The <code>CLAUDE.md</code> snippet gives Claude context about your LWS environment, including how to start the dev server, check status, and use mock and chaos commands. This context is read automatically by Claude Code when working in your project.</p>
@@ -361,7 +362,16 @@ <h4>Management API (Terraform mode)</h4>
361
362
<spanclass="op">ListTags</span>
362
363
</div>
363
364
</div>
364
-
<pclass="service-note">Runs functions inside official AWS Lambda Docker images (with AWS SDK pre-installed). Run <code>ldk setup lambda</code> once to pull the images. Supports timeout enforcement, realistic context objects, and environment variable injection. In CDK mode, functions are discovered from the cloud assembly. In Terraform mode, functions are created dynamically via the management API.</p>
365
+
<divclass="service-detail-section">
366
+
<h4>Function URLs</h4>
367
+
<divclass="service-detail-ops">
368
+
<spanclass="op">CreateFunctionUrlConfig</span>
369
+
<spanclass="op">GetFunctionUrlConfig</span>
370
+
<spanclass="op">UpdateFunctionUrlConfig</span>
371
+
<spanclass="op">DeleteFunctionUrlConfig</span>
372
+
</div>
373
+
</div>
374
+
<pclass="service-note">Runs functions inside official AWS Lambda Docker images (with AWS SDK pre-installed). Run <code>ldk setup lambda</code> once to pull the images. Supports timeout enforcement, realistic context objects, environment variable injection, and <strong>Function URLs</strong> — each function URL gets its own HTTP endpoint on a dedicated port with full CORS support and AWS Lambda payload format 2.0. Supports both BUFFERED and RESPONSE_STREAM invoke modes. In CDK mode, functions and URLs are discovered from the cloud assembly. In Terraform mode, functions are created dynamically via the management API.</p>
0 commit comments