Skip to content

Migrate from the localstack CLI to lstk - #28

Open
HarshCasper wants to merge 2 commits into
mainfrom
devx-1056-migrate-to-lstk
Open

Migrate from the localstack CLI to lstk#28
HarshCasper wants to merge 2 commits into
mainfrom
devx-1056-migrate-to-lstk

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

Summary

  • Replace localstack/awslocal/cdklocal invocations with lstk across the Makefile, README, npm scripts, and CI workflows.
  • Replace the setup-localstack action in the main CI workflow with npm install -g @localstack/lstk + lstk start.
  • Disable the PR Preview workflow's automatic trigger — Ephemeral Instances / App Preview aren't supported by lstk yet (same treatment as the quiz app).
  • Remove the dead tflocal install step; this repo has no Terraform.

Testing

  • CI workflow run on this branch.

Part of DEVX-1056

# Disabled: `lstk aws`/`lstk cdk` (used via the Makefile targets that preview-cmd
# below calls) always target their own locally-managed emulator and ignore
# AWS_ENDPOINT_URL, so they can't reach the remote ephemeral instance this
# workflow provisions. Re-enable once that's resolved.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is already resolved, although the lstk docs haven't been updated to reflect that AWS_ENDPOINT_URL is now recognized.

state-backend: ephemeral
state-action: start
include-preview: 'true'
# TODO(lstk): no install-lstk equivalent in the setup-localstack action yet —

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is the intention of this TODO? lstk aws is already part of lstk, so all that's required is for aws to be installed.

Comment thread README.md
```

The `EXTRA_CORS_ALLOWED_ORIGINS` configuration variable allows our website to send requests to the HTTP APIs exposed via the API Gateway. 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.
The `EXTRA_CORS_ALLOWED_ORIGINS` configuration variable allows our website to send requests to the HTTP APIs exposed via the API Gateway. If you prefer running LocalStack in detached mode, you can add the `--non-interactive` flag to the `lstk start` command, and use Docker Desktop to view the logs.

@peter-smith-phd peter-smith-phd Aug 24, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not correct, since lstk always run in a detached mode, and not just when --non-interactive is used.

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