From b1a1cedd89b725b7e3dce3b96833ca921256db40 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Thu, 5 Mar 2026 00:26:39 +0530 Subject: [PATCH 1/3] Switch to LocalStack Pro image and add license requirement --- README.md | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e21b5ce..6c7331f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ 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/). - [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). - [Terraform](https://docs.localstack.cloud/user-guide/integrations/terraform/) with the [`tflocal`](https://github.com/localstack/terraform-local) wrapper. diff --git a/docker-compose.yml b/docker-compose.yml index abb48d2..f9084e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.9" services: localstack: container_name: localstack - image: localstack/localstack:latest + image: localstack/localstack-pro:latest ports: - "127.0.0.1:4566:4566" # LocalStack Gateway - "127.0.0.1:4510-4559:4510-4559" # external services port range @@ -12,7 +12,7 @@ services: - DOCKER_HOST=unix:///var/run/docker.sock #unix socket to communicate with the docker daemon - LOCALSTACK_HOST=localstack # where services are available from other containers - ENFORCE_IAM=1 # enforce IAM policies -# - LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN} + - LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?} volumes: - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack" - "/var/run/docker.sock:/var/run/docker.sock" From 6d5bba0663c712c2033b0e715b777819d8a8270e Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Thu, 5 Mar 2026 00:35:24 +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 6c7331f..f7bb542 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,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). - [Terraform](https://docs.localstack.cloud/user-guide/integrations/terraform/) with the [`tflocal`](https://github.com/localstack/terraform-local) wrapper. - [Maven 3.8.5+](https://maven.apache.org/install.html) & [Java 17](https://www.java.com/en/download/help/download_options.html) From 0891bc2723ed9d41f2a06a5be1a88e8dc047c0dc 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 16426b7..444d07b 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,8 @@ frontend: ## Start LocalStack in detached mode start: - localstack start -d + @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 the Running LocalStack container stop: