From 0ca821f59ae09e2587e1980754b1414d8f33a15c Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Thu, 5 Mar 2026 00:26:44 +0530 Subject: [PATCH 1/3] Add LocalStack for AWS license requirement to prerequisites --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f9969b..bbf9ef8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,8 @@ The following diagram shows the architecture that this sample application builds ## Prerequisites -- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/) (required for Pro features) +- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a `LOCALSTACK_AUTH_TOKEN` to activate LocalStack. +- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/) - [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) - [AWS CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with [`cdklocal` wrapper](https://github.com/localstack/aws-cdk-local) (**optional**) - [Python 3.11+](https://www.python.org/downloads/) & `pip` for testing and Lambda functions From 8b7d47da7333a1a148fecb14e83df4babfa43c5a Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Thu, 5 Mar 2026 00:35:27 +0530 Subject: [PATCH 2/3] Hyperlink LOCALSTACK_AUTH_TOKEN and clean up localstack CLI prerequisite --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bbf9ef8..ea82dbf 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ The following diagram shows the architecture that this sample application builds ## Prerequisites -- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a `LOCALSTACK_AUTH_TOKEN` to activate LocalStack. -- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/) +- 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. +- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli). - [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) - [AWS CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with [`cdklocal` wrapper](https://github.com/localstack/aws-cdk-local) (**optional**) - [Python 3.11+](https://www.python.org/downloads/) & `pip` for testing and Lambda functions From 31c12eb46808e2f5170119fd06b0c9dd4fe5852c Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Fri, 6 Mar 2026 00:05:29 +0530 Subject: [PATCH 3/3] Add auth token guard to start target --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 91981d0..eda6e04 100644 --- a/Makefile +++ b/Makefile @@ -25,4 +25,18 @@ clean: ## Clean up any temporary files hot-reload: awslocal lambda update-function-code --function-name ScoringFunction --s3-bucket hot-reload --s3-key "$$(pwd)/lambdas/scoring" -.PHONY: usage deploy web save-state load-state clean +start: ## Start LocalStack + @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) + @LOCALSTACK_AUTH_TOKEN=$(LOCALSTACK_AUTH_TOKEN) localstack start -d + +stop: ## Stop LocalStack + @localstack stop + +ready: ## Wait until LocalStack is ready + @echo Waiting on the LocalStack container... + @localstack wait -t 30 && echo LocalStack is ready to use! || (echo Gave up waiting on LocalStack, exiting. && exit 1) + +logs: ## Save the logs in a separate file + @localstack logs > logs.txt + +.PHONY: usage deploy web save-state load-state clean start stop ready logs