Repository navigation
Install lstk instead of the legacy localstack CLI (1.0.0) - #9
Merged
Merged
Conversation
Bump the localstack-cli Feature to 1.0.0. It now installs lstk from the GitHub release archive, verified against checksums.txt, with completions, man pages and the bundled extensions. No Python or Node.js needed. Remove the awslocal, cdklocal, samlocal, tflocal and installUsingPython options. lstk aws, terraform, cdk and sam replace the deprecated wrappers. Keep pulumilocal, since lstk has no Pulumi command. Rewrite the scenario tests for lstk and stop CI from ignoring test failures (continue-on-error).
…cker in CI On Linux hosts the devcontainer CLI remaps the remote user's UID after Features install, so chown-ing the install dir to the user left it owned by a stale UID. Grant access through an `lstk` group instead, which survives the remap, and test group membership and writability. docker-in-docker fails to start dockerd on the GitHub runners; the with_docker_and_aws_cli scenario only needs a reachable daemon, so it now uses docker-outside-of-docker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of DEVX-1046.
The Feature still installs the legacy Python
localstackCLI and the deprecatedawslocal,tflocal,cdklocalandsamlocalwrappers. A user flagged the deprecatedtflocalin the community Slack. This PR moves the Feature tolstkand bumps it to 1.0.0.Changes
install.shdownloads thelstkrelease archive from GitHub, checks it against the releasechecksums.txt, unpacks it to/usr/local/lib/lstkand links/usr/local/bin/lstk. The whole archive is kept so the bundled extensions (lstk doctor,lstk deploy) resolve next to the binary. No Python or Node.js needed.latestresolves through thereleases/latestredirect instead of the GitHub API, so builds don't hit the anonymous API rate limit.lstkgroup, solstk updateworks withoutsudo. A group survives the UID remap the Dev Container CLI applies on Linux hosts. Achowndoes not.amd64andarm64. Missingcurl,tar,gzipor CA certificates are installed withapt-get,apk,dnf,microdnforyum.versionnow selects anlstkrelease (latest,1.5.0,v1.4.4).awslocal,cdklocal,samlocal,tflocalandinstallUsingPython. Users switch tolstk aws,lstk terraform,lstk cdkandlstk sam. NOTES.md has the mapping and the Feature to add for each tool.pulumilocal.pulumi-localis not deprecated andlstkhas no Pulumi command. Only this option pulls inpipx.localstack-cli:0keep the legacy CLI.CI
continue-on-error: truefrom every test job. It kept CI green while the tests failed.v-prefixed version on jammy,debian:trixie-slimwithout curl, Alpine, docker-outside-of-docker plus AWS CLI (lstk statusandlstk setup aws), andpulumilocalwith the Pulumi Feature.base:alpineto the autogenerated matrix and removed the empty global scenarios job.actions/checkoutto v4.Testing
Run locally with Dev Container CLI 0.91.0 on arm64 (OrbStack):
devcontainer features test -f localstack-cli --skip-autogenerated --skip-duplicated .: 7/7 scenarios pass.devcontainer features test --skip-scenarios -f localstack-cli -i <image> .: passes ondebian:latest,ubuntu:latest(26.04) andbase:ubuntu. CI addsbase:alpineand runs everything on amd64.I also simulated the Linux UID remap (
usermod -u) onbase:bookwormandbase:alpine, then ranlstk updatefrom 1.4.5 as the remote user. It updates to 1.5.0 and the bundled extensions still resolve.CI on amd64 is green: validate, 4 autogenerated images, 7 scenarios.
End-to-end runs of LocalStack through the Feature are in the template PR, which installs this Feature from a local checkout.
Release
After merge, run the "Release dev container features" workflow on
mainto publish 1.0.0 to GHCR. The template PR referenceslocalstack-cli:1, so its CI stays red until this is published.