Skip to content

Commit 20dffc4

Browse files
authored
Add LocalStack for AWS license requirement (#7)
* Add LocalStack for AWS license requirement to prerequisites * Hyperlink LOCALSTACK_AUTH_TOKEN and remove duplicate prerequisite * trigger CI * Add auth token guard to start target
1 parent 0099b22 commit 20dffc4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ check: ## Check if all required prerequisites are available
4444
@echo "All required prerequisites are available."
4545

4646
start: ## Start localstack
47+
@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)
4748
$(LOCAL_ENV) LOCALSTACK_AUTH_TOKEN=$(LOCALSTACK_AUTH_TOKEN) docker compose up --build --detach --wait
4849

4950
install: venv ## Install dependencies

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| Categories | Database Migration, Change Data Capture, Streaming |
99
| Level | Intermediate |
1010
| Use Case | Database Migration, Real-time Data Replication, CDC Implementation |
11-
| GitHub | [Repository link](https://github.com/localstack-samples/sample-dms-cdc-rds-to-kinesis) |
11+
| GitHub | [Repository link](https://github.com/localstack-samples/sample-dms-cdc-rds-to-kinesis) |
1212

1313
## Introduction
1414

@@ -31,7 +31,7 @@ The following diagram shows the architecture that this sample application builds
3131

3232
## Prerequisites
3333

34-
- [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/)
34+
- 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.
3535
- [Python 3.10+](https://www.python.org/downloads/) & `pip`
3636
- [Docker Compose](https://docs.docker.com/compose/install/)
3737
- [CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with the [`cdklocal`](https://github.com/localstack/aws-cdk-local) wrapper
@@ -63,7 +63,7 @@ This will create a virtual environment and install the required Python packages
6363

6464
## Deployment
6565

66-
Start LocalStack Pro with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
66+
Start LocalStack with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
6767

6868
```shell
6969
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>

0 commit comments

Comments
 (0)