Skip to content

Commit 541a040

Browse files
committed
Add auth token guard to start target
1 parent bdd230d commit 541a040

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ run: ## Execute a SQL query through the Lambda function
6262

6363
start: ## Start LocalStack in detached mode
6464
@echo "Starting LocalStack..."
65+
@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)
6566
@LOCALSTACK_AUTH_TOKEN=$(LOCALSTACK_AUTH_TOKEN) localstack start -d
6667
@echo "LocalStack started successfully."
6768

0 commit comments

Comments
 (0)