Skip to content

Commit 17b68a7

Browse files
authored
Add LocalStack for AWS license requirement (#9)
* Add LocalStack for AWS license requirement to prerequisites * Hyperlink LOCALSTACK_AUTH_TOKEN and clean up localstack CLI prerequisite * Add auth token guard to start target
1 parent 96a972f commit 17b68a7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ test: ## Run the tests
4646

4747
start: ## Start LocalStack
4848
@echo "Starting LocalStack..."
49+
@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)
4950
@LOCALSTACK_AUTH_TOKEN=$(LOCALSTACK_AUTH_TOKEN) IMAGE_NAME=localstack/localstack-pro:latest-bigdata localstack start -d
5051
@echo "LocalStack started successfully."
5152

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ The following diagram shows the architecture that this sample application builds
3333

3434
## Prerequisites
3535

36-
- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/)
36+
- 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.
37+
- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli).
3738
- [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)
3839
- [`make`](https://www.gnu.org/software/make/) (**optional**, but recommended for running the sample application)
3940

@@ -64,7 +65,7 @@ No additional installation steps are required as the sample uses CloudFormation
6465

6566
## Deployment
6667

67-
Start LocalStack Pro with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
68+
Start LocalStack with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
6869

6970
```shell
7071
localstack auth set-token <LOCALSTACK_AUTH_TOKEN>

0 commit comments

Comments
 (0)