Skip to content

Commit 0891bc2

Browse files
committed
Add auth token guard to start target
1 parent 6d5bba0 commit 0891bc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ frontend:
5252

5353
## Start LocalStack in detached mode
5454
start:
55-
localstack start -d
55+
@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)
56+
@LOCALSTACK_AUTH_TOKEN=$(LOCALSTACK_AUTH_TOKEN) localstack start -d
5657

5758
## Stop the Running LocalStack container
5859
stop:

0 commit comments

Comments
 (0)