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
Copy file name to clipboardExpand all lines: Makefile
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,8 @@ deploy:
20
20
21
21
## Start LocalStack in detached mode
22
22
start:
23
-
localstack start -d
23
+
@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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,22 +32,24 @@ We are using the following AWS services to build our infrastructure:
32
32
33
33
## Prerequisites
34
34
35
-
* LocalStack Pro with the [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli).
35
+
* 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.
*[Serverless Application Model](https://docs.localstack.cloud/user-guide/integrations/aws-sam/) with the [samlocal](https://github.com/localstack/aws-sam-cli-local) installed.
*[Node.js](https://nodejs.org/en/download) with npm package manager.
39
40
*[Artillery](https://artillery.io/docs/guides/overview/welcome.html) to generate some load towards both the apis.
40
-
*[`yq`](https://github.com/mikefarah/yq#install) and[`jq`](https://jqlang.github.io/jq/download/) for running the deployment script.
41
+
*[`yq`](https://github.com/mikefarah/yq#install) and[`jq`](https://jqlang.github.io/jq/download/) for running the deployment script.
41
42
42
-
Start LocalStack Pro with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
43
+
## Start LocalStack
44
+
45
+
Start LocalStack with the `LOCALSTACK_AUTH_TOKEN` pre-configured:
43
46
44
47
```shell
45
48
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
46
-
localstack start
49
+
make start
50
+
make ready
47
51
```
48
52
49
-
> 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.
50
-
51
53
## Instructions
52
54
53
55
You can build and deploy the sample application on LocalStack by running our `Makefile` commands. Run `make deploy` to create the infrastructure on LocalStack. Run `make stop` to delete the infrastructure by stopping LocalStack.
0 commit comments