Skip to content

Commit aa14d4f

Browse files
make use_pro default to true and add deprecation warnings
1 parent 1feaef8 commit aa14d4f

4 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
"image-tag": "3.2.0",
3030
"install-awslocal": "true",
3131
"configuration": "DEBUG=1",
32-
"use-pro": "true",
3332
}
3433
env:
3534
# intentially left `LOCALSTACK_API_KEY` as env here, to ensure the fallback still works for old version
@@ -59,7 +58,6 @@ jobs:
5958
"image-tag": "latest",
6059
"install-awslocal": "true",
6160
"configuration": "DEBUG=1",
62-
"use-pro": "true",
6361
}
6462
env:
6563
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
@@ -111,7 +109,6 @@ jobs:
111109
"image-tag": "latest",
112110
"install-awslocal": "true",
113111
"configuration": "DEBUG=1",
114-
"use-pro": "true",
115112
"state-name": "${{ needs.cloud-pods-save-test.outputs.pod-name }}",
116113
"state-action": "load"
117114
}
@@ -160,7 +157,6 @@ jobs:
160157
"image-tag": "latest",
161158
"install-awslocal": "true",
162159
"configuration": "DEBUG=1",
163-
"use-pro": "true",
164160
}
165161
env:
166162
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
@@ -202,7 +198,6 @@ jobs:
202198
"image-tag": "latest",
203199
"install-awslocal": "true",
204200
"configuration": "DEBUG=1",
205-
"use-pro": "true",
206201
"state-name": "local-pods-test",
207202
"state-action": "load",
208203
"state-backend": "local",

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ A GitHub Action to setup [LocalStack](https://github.com/localstack/localstack)
2525
env:
2626
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
2727
```
28-
> **NOTE**: The `LOCALSTACK_AUTH_TOKEN` environment variable is required to be set if `use-pro` is set to `true`.
29-
If the key is not found LocalStack by default falls back to the CE edition and displays a warning.
28+
> **NOTE**: The `LOCALSTACK_AUTH_TOKEN` environment variable is required. Since `use-pro` now defaults to `true`, the action will use the Pro image by default.
29+
> The `use-pro` input will be removed in a future release.
3030

3131
### Install only CLIs and startup later
3232
```yml
@@ -122,7 +122,7 @@ with:
122122
| `state-action` | Valid values are `load`, `save`, `start`, `stop`, `''` (empty, don't manage state). Values `start`/`stop` only usable with app previews. | `''` |
123123
| `state-backend` | Either store the state of LocalStack locally, as a Cloud Pod or start an Ephemeral Instance. Valid values are `cloud-pods`, `ephemeral` or `local`. Use this option in unison with `state-action` to control behaviour. | `cloud-pods` |
124124
| `state-name` | Name of the state artifact (without extension) | `false` |
125-
| `use-pro` | Whether to use the Pro version of LocalStack (requires Auth Token to be configured) | `false` |
125+
| `use-pro` | Whether to use the Pro version of LocalStack (requires Auth Token to be configured). Will be removed in a future release. | `true` |
126126

127127
## Example workflow
128128
```yml
@@ -142,7 +142,6 @@ jobs:
142142
image-tag: 'latest'
143143
install-awslocal: 'true'
144144
configuration: DEBUG=1
145-
use-pro: 'true'
146145
state-backend: cloud-pods
147146
state-action: load
148147
state-name: my-cloud-pod

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ inputs:
1616
required: true
1717
default: 'true'
1818
use-pro:
19-
description: 'Whether to use LocalStack Pro (requires a valid CI Auth Token)'
19+
description: 'Deprecated. Whether to use LocalStack Pro (requires a valid CI Auth Token)'
2020
required: false
21-
default: 'false'
21+
default: 'true'
22+
deprecationMessage: 'use-pro is deprecated and will be removed in a future release. The pro image is now the default.'
2223
configuration:
2324
description: 'Configuration variables to use for LocalStack'
2425
required: false

startup/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ inputs:
1111
required: true
1212
default: 'true'
1313
use-pro:
14-
description: 'Whether to use LocalStack Pro (requires a valid CI Auth Token)'
14+
description: 'Deprecated. Whether to use LocalStack Pro (requires a valid CI Auth Token)'
1515
required: false
16-
default: 'false'
16+
default: 'true'
17+
deprecationMessage: 'use-pro is deprecated and will be removed in a future release. The pro image is now the default.'
1718
configuration:
1819
description: 'Configuration variables to use for LocalStack'
1920
required: false
@@ -62,7 +63,10 @@ runs:
6263
- name: Start LocalStack
6364
run: |
6465
if [ "$USE_PRO" = true ]; then
65-
if [ "x$LOCALSTACK_AUTH_TOKEN" = "x" -o "x$LOCALSTACK_API_KEY" = "x" ]; then
66+
if [ "x$LOCALSTACK_API_KEY" != "x" ]; then
67+
echo "WARNING: LOCALSTACK_API_KEY is deprecated, please use LOCALSTACK_AUTH_TOKEN instead."
68+
fi
69+
if [ "x$LOCALSTACK_AUTH_TOKEN" = "x" -a "x$LOCALSTACK_API_KEY" = "x" ]; then
6670
echo "WARNING: LocalStack Auth Token not detected, please verify your configuration..."
6771
fi
6872
CONFIGURATION="DNS_ADDRESS=127.0.0.1 ${CONFIGURATION}"

0 commit comments

Comments
 (0)