Repository navigation
Conversation
|
The ephemeral instance for the application preview has been shut down |
Install lstk instead of `pip install localstack` / awscli-local and use it everywhere: - startup: write an lstk config (image, port, env profile built from `configuration`, DNS_ADDRESS, CI_PROJECT) and run `lstk start`, which waits until ready; `skip-wait` runs it in the background - cloud-pods: `lstk save/load pod:NAME` - local: `lstk save/load NAME.snapshot`, still loads legacy NAME.zip - ci, ephemeral test, README: `lstk aws` instead of `awslocal` - copy LOCALSTACK_API_KEY into LOCALSTACK_AUTH_TOKEN and unset it, since lstk forwards LOCALSTACK_* into the container and older images (e.g. 3.2.0) fail to start with LOCALSTACK_API_KEY set - ephemeral: wait for /_localstack/health before preview-cmd, as `lstk aws` health-checks the endpoint and fails fast - deprecate `install-awslocal` and `skip-pull` (no effect) - CI tests against the latest image instead of 3.2.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anisaoshafi
approved these changes
Nov 30, 2026
bartsdev
force-pushed
the
feat/migrate-to-lstk
branch
from
November 30, 2026 13:55
ffd1530 to
c7d0833
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the Python
localstackCLI andawslocalwithlstkeverywhere in the action. Ephemeral Instances are still created through the LocalStack API.Other changes:
configuration(KEY=VALUE …, shell quoting allowed) becomes an[env.setup_localstack]profile in the lstk config, so every variable reaches the container.LOCALSTACK_API_KEYis copied intoLOCALSTACK_AUTH_TOKENand then unset. lstk forwards everyLOCALSTACK_*variable to the container, andlocalstack-pro:3.2.0fails to start whenLOCALSTACK_API_KEYis present./_localstack/health(up toLS_WAIT_TIMEOUT, default 180s). The create API can return before the instance is ready;awslocalhid that through the AWS CLI's retries, butlstk awshealth-checks first and fails fast.install-awslocalandskip-pullare kept as inputs that no longer do anything, and show a deprecation message when set.latestinstead of3.2.0.Evidence
mainfailed every week (run 46325297167).awslocalcrashed withModuleNotFoundError: No module named 'botocore.vendored'. fix: install awslocal with pipx to avoid distro botocore #78 patched that onmain; this PR removesawslocalentirely.LocalStack Testpasses 6/6 on this branch (run 46432882873), and the ephemeral instance test passes (run 46432882883):3.2.0(run 46429060349, 6/6).configurationvaluesDEBUG=1 FOO_TEST="x y" QUOTE=a\"bshow up unchanged in the container's env..zipexported bylocalstack state exportloads withlstk load.Could not pull …; using the local image).Merge Danger
Door: two-way
Reverting the merge is easy. Shipping it in an immutable release (see 0.3.2) is the one-way step, so this should go out as a new minor version, not a patch.
Blast Radius: consumers
Breaking for users who upgrade (all listed in
CHANGELOG.md):localstackandawslocalcommands are no longer installed, so later steps that call them will fail. Uselstk save|load|snapshotandlstk awsinstead.<state-name>.snapshotinstead of<state-name>.zip. Old.zipartifacts still load.lstk config path). On self-hosted runners this overwrites an existing lstk config for the runner user.skip-pullno longer prevents the pull. lstk always tries the registry and only falls back to the local image when the pull fails.npmorbrewto install lstk, and theawsCLI forlstk aws. Both are preinstalled on GitHub-hosted runners.🤖 Generated with Claude Code