Skip to content

Use the LocalStack pro image by default#63

Merged
dominikschubert merged 3 commits intomainfrom
pro-default
Mar 20, 2026
Merged

Use the LocalStack pro image by default#63
dominikschubert merged 3 commits intomainfrom
pro-default

Conversation

@dominikschubert
Copy link
Member

@dominikschubert dominikschubert commented Mar 19, 2026

Motivation

With our image consolidation the previous PRO image will become the default and both localstack/localstack & localstack/localstack-pro will start requiring authentication. This PR is a first step to default to authenticated use by defaulting to the (legacy) localstack/localstack-pro image.

Fixes DRG-527

Changes

Changes are kept minimal while having clear (deprecation) messaging to support the image consolidation.

  • Updated release version to v0.3.0 (this should be automated in the future)
  • Updated readme with new versions & deprecation notices
  • Minor logic fix to warn if no token is set.

Follow-ups

Following up to this we need to:

  • Remove LOCALSTACK_API_KEY completely.
  • Remove the input use_pro completely and explicitly warn when no auth is configured.
  • Switch back to defaulting to localstack/localstack, but require authentication.
  • Install lstk instead

These will arrive fairly soon in a v0.4.0 release after the image consolidation.

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

The ephemeral instance for the application preview has been shut down

@dominikschubert dominikschubert self-assigned this Mar 20, 2026
@dominikschubert dominikschubert marked this pull request as ready for review March 20, 2026 07:23
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lookin' great! Thanks! This makes it very explicit that the auth token is expected in the future in just a minimal change, while listing and leaving the next steps for future PRs. 💯

Comment on lines +14 to +17
description: 'Deprecated. Whether to use LocalStack Pro (requires a valid CI Auth Token)'
required: false
default: 'false'
default: 'true'
deprecationMessage: 'use-pro is deprecated and will be removed in a future release. The pro image is now the default.'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: TIL GitHub actions have an explicit declaration of deprecation for variables 🤩

run: |
if [ "$USE_PRO" = true ]; then
if [ "x$LOCALSTACK_AUTH_TOKEN" = "x" -o "x$LOCALSTACK_API_KEY" = "x" ]; then
if [ "x$LOCALSTACK_API_KEY" != "x" ]; then
Copy link
Member

@alexrashed alexrashed Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought (non-blocking): This is an interesting way of testing if a variable is empty or not (but I se this was already the case before, so totally out of scope). 😅
I guess I would rather use -z (check if a string is empty) or -n (check if a string is non-empty) as outlined in the Bash Reference Manual.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you said, I mostly just kept it to stay close to the current version, especially since I expect a more fundamental rewrite here anyway. 👍

@dominikschubert dominikschubert merged commit 2e0e140 into main Mar 20, 2026
6 checks passed
@dominikschubert dominikschubert deleted the pro-default branch March 20, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants