You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run: ## Deploy the app locally and run an AppSync GraphQL test invocation
17
17
./run.sh
18
18
19
-
start:
20
-
localstack start -d
19
+
start: ## Start LocalStack
20
+
@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)
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,23 @@ We are using the following AWS services and third-party integrations to build ou
27
27
28
28
## Prerequisites
29
29
30
-
- LocalStack Pro with the [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli).
30
+
- 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.
-[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).
32
33
-[Python](https://www.python.org/downloads/)
33
34
-[`cURL`](https://curl.se/)
34
35
-[`wscat`](https://github.com/websockets/wscat)
35
36
36
-
Start LocalStack Pro with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
37
+
## Start LocalStack
38
+
39
+
Start LocalStack with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
37
40
38
41
```sh
39
42
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
40
-
localstack start
43
+
make start
44
+
make ready
41
45
```
42
46
43
-
> If you prefer running LocalStack in detached mode, you can add the `-d` flag to the `localstack start` command, and use Docker Desktop to view the logs.
44
-
45
47
## Instructions
46
48
47
49
You can build and deploy the sample application on LocalStack by running our `Makefile` commands. Run `make install` to install the dependencies and `make run` to create the infrastructure on LocalStack. Run `make stop` to delete the infrastructure by stopping LocalStack.
0 commit comments