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
remove community image fallback, make auth token required (#7)
- `start()` now requires `LOCALSTACK_AUTH_TOKEN` — no more optional fallback
to `localstack/localstack:latest` without a token
- Remove `localstack/localstack-pro:latest` image reference; always use
`localstack/localstack:latest`
- Always expose ports 4566 and 443 (no longer conditional on auth token)
- Update README, tests, and all examples to remove community edition
references and pass auth token to every `start()` call
Closes DEVREL-62
A [Dagger](https://dagger.io/) module for running [LocalStack](https://github.com/localstack/localstack)(Community and Pro image) as a service within your Dagger pipelines.
6
+
A [Dagger](https://dagger.io/) module for running [LocalStack](https://github.com/localstack/localstack) as a service within your Dagger pipelines.
7
7
8
8
This module simplifies integrating LocalStack into your development and testing workflows by:
9
9
10
-
- Starting LocalStack Community or Pro editions as a Dagger service.
10
+
- Starting LocalStack as a Dagger service.
11
11
- Securely handling LocalStack Auth Tokens using Dagger secrets.
12
-
- Automatically exposing standard LocalStack ports (`4566`for Community/Pro, `443` for Pro).
12
+
- Automatically exposing standard LocalStack ports (`4566`and `443`).
13
13
- Allowing customization of the LocalStack container via environment variables.
14
14
- Optionally mounting the Docker socket for tests interacting with external containers.
15
15
- Managing LocalStack state using [Cloud Pods](https://docs.localstack.cloud/user-guide/state-management/cloud-pods/) (`save`/`load`/`reset`).
@@ -19,7 +19,7 @@ This module simplifies integrating LocalStack into your development and testing
Cloud pods are persistent state snapshots of your LocalStack instance that can easily be stored, versioned, shared, and restored. Cloud Pods require a LocalStack Auth Token.
74
+
Cloud pods are persistent state snapshots of your LocalStack instance that can easily be stored, versioned, shared, and restored.
87
75
88
-
```bash
76
+
```bash
89
77
# Set your auth token
90
-
export LOCALSTACK_AUTH_TOKEN="your-pro-token"
78
+
export LOCALSTACK_AUTH_TOKEN="your-token"
91
79
92
80
# Save the current state of your running LocalStack instance to a Cloud Pod
93
81
# Assumes you have a running instance started via 'dagger call start ... up'
@@ -108,11 +96,11 @@ dagger -m github.com/localstack/localstack-dagger-module call state \
108
96
109
97
### Managing Ephemeral Instances
110
98
111
-
Ephemeral Instances allows you to run a LocalStack instance in the cloud. Ephemeral Instances require a LocalStack Pro Auth Token.
99
+
Ephemeral Instances allows you to run a LocalStack instance in the cloud.
112
100
113
101
```bash
114
102
# Set your auth token
115
-
export LOCALSTACK_AUTH_TOKEN="your-pro-token"
103
+
export LOCALSTACK_AUTH_TOKEN="your-token"
116
104
117
105
# Create a new Ephemeral Instance in LocalStack Cloud
|`docker-sock`| Path to the Unix socket for the Docker daemon to mount into the container. |`None`|`dagger call start --docker-sock=/var/run/docker.sock`|
153
-
|`image-name`| Custom LocalStack Docker image name and tag. |`localstack/localstack:latest`|`dagger call start --image-name=localstack/snowflake:latest`|
|`docker-sock`| Path to the Unix socket for the Docker daemon to mount into the container. |`None`|`dagger call start --docker-sock=/var/run/docker.sock`|
141
+
|`image-name`| Custom LocalStack Docker image name and tag. |`localstack/localstack:latest`|`dagger call start --image-name=localstack/snowflake:latest`|
154
142
155
143
### `state`
156
144
157
-
Used to manage the state of a running LocalStack instance using Cloud Pods (Pro only).
145
+
Used to manage the state of a running LocalStack instance using Cloud Pods.
|`auth-token`| LocalStack Pro Auth Token (as Dagger `Secret`). Required for `save` and `load`.|`None`|`dagger call state --auth-token=env:LOCALSTACK_AUTH_TOKEN`|
0 commit comments