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
Copy file name to clipboardExpand all lines: Makefile
+13-17Lines changed: 13 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ check: ## Check if all required prerequisites are installed
18
18
@command -v docker > /dev/null 2>&1|| { echo"Docker is not installed. Please install Docker and try again.";exit 1; }
19
19
@command -v node > /dev/null 2>&1|| { echo"Node.js is not installed. Please install Node.js and try again.";exit 1; }
20
20
@command -v aws > /dev/null 2>&1|| { echo"AWS CLI is not installed. Please install AWS CLI and try again.";exit 1; }
21
-
@command -v awslocal> /dev/null 2>&1|| { echo"awslocal is not installed. Run: pip install awscli-local";exit 1; }
22
-
@command -v localstack> /dev/null 2>&1|| { echo"LocalStack CLI is not installed. Run: pip install localstack";exit 1; }
21
+
@command -v lstk> /dev/null 2>&1|| { echo"lstk is not installed. Run: npm install -g @localstack/lstk";exit 1; }
22
+
@command -v cdk> /dev/null 2>&1|| { echo"AWS CDK CLI is not installed. Run: npm install -g aws-cdk";exit 1; }
23
23
@command -v jq > /dev/null 2>&1|| { echo"jq is not installed. See https://jqlang.github.io/jq/download/";exit 1; }
24
24
@test -n "$(LOCALSTACK_AUTH_TOKEN)"|| { echo"LOCALSTACK_AUTH_TOKEN is not set. Find your token at https://app.localstack.cloud/workspace/auth-token";exit 1; }
echo"Polling s3://archive-bucket/ for result ...";\
72
-
awslocal s3 ls s3://archive-bucket/ | grep "$$reqID"&&exit 0;\
72
+
lstk aws s3 ls s3://archive-bucket/ | grep "$$reqID"&&exit 0;\
73
73
sleep 3;\
74
74
done;\
75
75
echo"Timed out waiting for result."
76
76
77
-
start: ## Start LocalStack in detached mode
77
+
start: ## Start LocalStack
78
78
@echo "Starting LocalStack..."
79
79
@test -n "$(LOCALSTACK_AUTH_TOKEN)"|| { echo"LOCALSTACK_AUTH_TOKEN is not set. Find your token at https://app.localstack.cloud/workspace/auth-token";exit 1; }
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,10 @@ The following diagram shows the architecture that this sample application builds
34
34
35
35
## Prerequisites
36
36
37
-
- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/) to activate LocalStack.
-[AWS CLI](https://docs.localstack.cloud/user-guide/integrations/aws-cli/) with the [`awslocal` wrapper](https://docs.localstack.cloud/user-guide/integrations/aws-cli/#localstack-aws-cli-awslocal).
40
-
-[CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/)with the [`cdklocal`](https://www.npmjs.com/package/aws-cdk-local) wrapper (installed automatically via `cdk/package.json`).
37
+
- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/aws/getting-started/auth-token/) to activate LocalStack.
38
+
-[`lstk` CLI](https://docs.localstack.cloud/aws/developer-tools/running-localstack/lstk/), installed via `npm install -g @localstack/lstk` or `brew install localstack/tap/lstk`.
39
+
-[AWS CLI](https://docs.localstack.cloud/user-guide/integrations/aws-cli/), required by `lstk aws`.
40
+
-[CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/)installed globally (`npm install -g aws-cdk`), used via the `lstk cdk` proxy.
41
41
-[Node.js 22+](https://nodejs.org/en/download/)
42
42
-[Docker](https://docs.docker.com/get-docker/) — required to bundle Ruby Lambda gems.
43
43
-[`jq`](https://jqlang.github.io/jq/download/)
@@ -65,7 +65,6 @@ Set your LocalStack auth token and start LocalStack:
65
65
```bash
66
66
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
67
67
make start
68
-
make ready
69
68
```
70
69
71
70
Deploy the full stack (bundles Lambda dependencies, bootstraps CDK, deploys, uploads frontend):
@@ -126,7 +125,7 @@ Polling s3://archive-bucket/ for result ...
126
125
You can also browse the contents of the archive bucket directly:
127
126
128
127
```bash
129
-
awslocal s3 ls s3://archive-bucket/
128
+
lstk aws s3 ls s3://archive-bucket/
130
129
```
131
130
132
131
## Summary
@@ -136,7 +135,7 @@ This sample application demonstrates how to build and test a polyglot serverless
136
135
- Defining AWS infrastructure (API Gateway, Lambda, SQS, Step Functions, DynamoDB, S3) entirely with **AWS CDK in TypeScript**.
137
136
- Running **three Lambda runtimes** (Node.js, Python, Ruby) side-by-side in the same CDK stack.
138
137
- Serving a **React frontend from S3** that auto-discovers the API Gateway endpoint and polls for status updates.
139
-
- Using `cdklocal` and `awslocal` to streamline **local deployment and testing** without touching real AWS.
138
+
- Using the `lstk cdk` and `lstk aws` proxies to streamline **local deployment and testing** without touching real AWS.
140
139
- Providing a **GitHub Actions workflow** that runs the full integration test suite on every push.
0 commit comments