Skip to content

Commit 69d99ad

Browse files
authored
Add LocalStack for AWS license requirement (#17)
* Add LocalStack for AWS license requirement to prerequisites * Hyperlink LOCALSTACK_AUTH_TOKEN and clean up localstack CLI prerequisite * trigger CI * Add auth token guard to start target
1 parent cfc2ec8 commit 69d99ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ The following diagram shows the architecture that this sample application builds
2626

2727
## Prerequisites
2828

29-
- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/).
29+
- 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.
30+
- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli).
3031
- [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).
3132
- [CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with the [`cdklocal`](https://www.npmjs.com/package/aws-cdk-local) wrapper.
3233
- [Node.js](https://nodejs.org/en/download/)
@@ -47,6 +48,7 @@ Then, navigate to the project directory:
4748
```shell
4849
cd sample-cdk-rds-database-initialization
4950
```
51+
5052
Next, install the project dependencies by running the following command:
5153

5254
```shell

0 commit comments

Comments
 (0)