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
Replace Terraform with HCL and tofu commands throughout
All prose references to Terraform updated to HCL (with OpenTofu or
Terraform where appropriate). CLI commands in code blocks updated from
terraform to tofu. Prerequisite now links to both OpenTofu and Terraform.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
<divclass="code-block"><code>uvx --from local-web-services ldk dev</code></div>
147
-
<p>The <code>ldk dev</code> command auto-detects your Terraform project, starts all AWS service providers in always-on mode, and generates a <code>_lws_override.tf</code> file that redirects Terraform's AWS provider to your local endpoints.</p>
147
+
<p>The <code>ldk dev</code> command auto-detects your HCL project, starts all AWS service providers in always-on mode, and generates a <code>_lws_override.tf</code> file that redirects Terraform's AWS provider to your local endpoints.</p>
148
148
</div>
149
149
150
150
<divclass="gs-step">
151
-
<h3>5. Apply Terraform</h3>
152
-
<p>In another terminal, apply your Terraform configuration against the local services:</p>
<p>Terraform creates all resources (DynamoDB tables, SQS queues, Lambda functions, API Gateway routes, etc.) against your local endpoints. No AWS account needed.</p>
151
+
<h3>5. Apply HCL</h3>
152
+
<p>In another terminal, apply your HCL configuration against the local services:</p>
<p>Your HCL tool creates all resources (DynamoDB tables, SQS queues, Lambda functions, API Gateway routes, etc.) against your local endpoints. No AWS account needed.</p>
<title>Local Web Services - The Fastest Feedback Loop for Cloud-Native Development</title>
7
-
<metaname="description" content="Local Web Services reads your AWS CDK or Terraform project and recreates your application locally. Build, test, and debug cloud-native AWS apps without deploying — no credentials, no cost, no waiting.">
7
+
<metaname="description" content="Local Web Services reads your AWS CDK or HCL project and recreates your application locally. Build, test, and debug cloud-native AWS apps without deploying — no credentials, no cost, no waiting.">
<pclass="hero-subtitle">Test AWS applications with realistic in-process local services using native language SDKs.<br>
33
-
Or run <code>ldk dev</code> as a local development server for CDK and Terraform projects.<br>
33
+
Or run <code>ldk dev</code> as a local development server for CDK and HCL projects.<br>
34
34
No credentials. No cost. No waiting.</p>
35
35
<divclass="hero-actions">
36
36
<ahref="sdks.html" class="btn btn-primary">Explore the SDKs</a>
@@ -45,7 +45,7 @@ <h1>Local Web Services</h1>
45
45
<sectionclass="section" id="what">
46
46
<divclass="container">
47
47
<h2>What is Local Web Services?</h2>
48
-
<pclass="section-lead">Local Web Services emulates AWS services locally for development and testing. Use the language SDKs for in-process pytest or unit testing, or run <code>ldk dev</code> to start a full local development server that reads your CDK or Terraform project and recreates your entire stack.</p>
48
+
<pclass="section-lead">Local Web Services emulates AWS services locally for development and testing. Use the language SDKs for in-process pytest or unit testing, or run <code>ldk dev</code> to start a full local development server that reads your CDK or HCL project and recreates your entire stack.</p>
49
49
50
50
<divclass="feature-grid">
51
51
<divclass="feature-card">
@@ -56,7 +56,7 @@ <h3>Python SDK</h3>
56
56
<divclass="feature-card">
57
57
<divclass="feature-icon">⚡</div>
58
58
<h3>ldk</h3>
59
-
<p>The local development server. Parses your CDK or Terraform project and spins up local providers for every AWS service you use — DynamoDB, Lambda, S3, SQS, and more. Hot reloading included.</p>
59
+
<p>The local development server. Parses your CDK or HCL project and spins up local providers for every AWS service you use — DynamoDB, Lambda, S3, SQS, and more. Hot reloading included.</p>
60
60
</div>
61
61
<divclass="feature-card">
62
62
<divclass="feature-icon">🔧</div>
@@ -107,14 +107,14 @@ <h3>Structured Logging</h3>
107
107
<sectionclass="section section-alt" id="why">
108
108
<divclass="container">
109
109
<h2>Why Use Local Web Services?</h2>
110
-
<pclass="section-lead">Building with AWS CDK or Terraform traditionally means deploying to the cloud just to test your code. Every change triggers a deploy-wait-test cycle that kills your flow and racks up costs.</p>
110
+
<pclass="section-lead">Building with AWS CDK or HCL traditionally means deploying to the cloud just to test your code. Every change triggers a deploy-wait-test cycle that kills your flow and racks up costs.</p>
111
111
112
112
<divclass="comparison">
113
113
<divclass="comparison-col comparison-before">
114
114
<h3>Without Local Web Services</h3>
115
115
<ul>
116
116
<li>Edit code</li>
117
-
<li>Run <code>cdk deploy</code> or <code>terraform apply</code> — wait minutes</li>
117
+
<li>Run <code>cdk deploy</code> or <code>tofu apply</code> — wait minutes</li>
118
118
<li>Test against live AWS resources</li>
119
119
<li>Check CloudWatch logs for errors</li>
120
120
<li>Pay for every invocation and resource</li>
@@ -173,7 +173,7 @@ <h3>CI/CD Testing</h3>
173
173
<sectionclass="section" id="how-it-works">
174
174
<divclass="container">
175
175
<h2>How It Works</h2>
176
-
<pclass="section-lead">Local Web Services auto-detects your project type (CDK or Terraform) and starts local AWS-compatible service endpoints. Your code talks to local services instead of real AWS.</p>
176
+
<pclass="section-lead">Local Web Services auto-detects your project type (CDK or HCL) and starts local AWS-compatible service endpoints. Your code talks to local services instead of real AWS.</p>
<p>The <code>ldk</code> tool detects <code>.tf</code> files in your project directory and enters Terraform mode automatically (or use <code>--mode terraform</code> explicitly).</p>
216
+
<p>The <code>ldk</code> tool detects <code>.tf</code> files in your project directory and enters HCL mode automatically (or use <code>--mode terraform</code> explicitly).</p>
217
217
</div>
218
218
</div>
219
219
<divclass="step">
@@ -234,7 +234,7 @@ <h3>Override</h3>
234
234
<divclass="step-number">4</div>
235
235
<divclass="step-content">
236
236
<h3>Apply</h3>
237
-
<p>Run <code>terraform apply</code> as normal. Terraform creates resources (tables, queues, buckets, Lambda functions) against your local endpoints. Your Lambda handlers run locally with full AWS SDK support.</p>
237
+
<p>Run <code>tofu apply</code> as normal. Your HCL tool creates resources (tables, queues, buckets, Lambda functions) against your local endpoints. Your Lambda handlers run locally with full AWS SDK support.</p>
Copy file name to clipboardExpand all lines: sdk-python.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ <h4>lws_session_from_cdk</h4>
205
205
</div>
206
206
<divclass="lws-command">
207
207
<h4>lws_session_from_hcl</h4>
208
-
<p>Session-scoped session with auto-discovery from Terraform project. Configure path via <code>hcl_project_dir</code> fixture (default <code>"."</code>).</p>
208
+
<p>Session-scoped session with auto-discovery from HCL project. Configure path via <code>hcl_project_dir</code> fixture (default <code>"."</code>).</p>
209
209
</div>
210
210
</div>
211
211
@@ -303,7 +303,7 @@ <h3 class="section-subheading section-subheading--primary">Explicit resource dec
<p>A single context manager that starts all your services. Declare tables, queues, buckets, topics, state machines, parameters, and secrets — or auto-discover them from a CDK or Terraform project.</p>
105
+
<p>A single context manager that starts all your services. Declare tables, queues, buckets, topics, state machines, parameters, and secrets — or auto-discover them from a CDK or HCL project.</p>
0 commit comments