Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:

- name: Install CDK
run: |
npm install -g aws-cdk-local aws-cdk
cdklocal --version
npm install -g @localstack/lstk aws-cdk
cdk --version

- name: Install dependencies
run: |
Expand Down
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,15 @@ start: ## Start LocalStack
stop: ## Stop LocalStack
docker compose down

ready: ## Wait until LocalStack is ready
@echo Waiting on the LocalStack container...
@localstack wait -t 30 && echo LocalStack is ready to use! || (echo Gave up waiting on LocalStack, exiting. && exit 1)

logs: ## Save the logs in a separate file
@localstack logs > logs.txt
@lstk logs > logs.txt

install: venv
$(VENV_RUN); $(PIP_CMD) install -r requirements.txt

deploy:
$(VENV_RUN); $(LOCAL_ENV) cdklocal bootstrap --output ./cdk.local.out
$(VENV_RUN); $(LOCAL_ENV) cdklocal deploy --require-approval never --output ./cdk.local.out
$(VENV_RUN); $(LOCAL_ENV) lstk cdk bootstrap --output ./cdk.local.out
$(VENV_RUN); $(LOCAL_ENV) lstk cdk deploy --require-approval never --output ./cdk.local.out

deploy-aws:
$(VENV_RUN); $(CLOUD_ENV) cdk bootstrap
Expand All @@ -68,4 +64,4 @@ run:
run-aws:
$(VENV_RUN); $(CLOUD_ENV) python run.py

.PHONY: usage venv start stop ready logs install deploy deploy-aws destroy destroy-aws run run-aws
.PHONY: usage venv start stop logs install deploy deploy-aws destroy destroy-aws run run-aws
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ This scenario demonstrates how to use Database Migration Service (DMS) to create

## Pre-requisites

- 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.
- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/aws/getting-started/auth-token/) to activate LocalStack.
- [Python 3.10](https://www.python.org/downloads/) & `pip`
- [Docker Compose](https://docs.docker.com/compose/install/)
- [CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with the [`cdklocal`](https://github.com/localstack/aws-cdk-local) wrapper.
- [CDK](https://docs.localstack.cloud/user-guide/integrations/aws-cdk/) with the [`lstk`](https://docs.localstack.cloud/aws/developer-tools/running-localstack/lstk/) CLI.

## Start LocalStack

Expand All @@ -20,7 +20,6 @@ Start LocalStack with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
```bash
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start
make ready
```

The Docker Compose file will start LocalStack container and a Postgres container. The Postgres container will be used to showcase how to reach a database external to LocalStack.
Expand Down
Loading