Skip to content

Hide resources by default in lstk status - #618

Draft
anisaoshafi wants to merge 3 commits into
mainfrom
devx-1473-hide-resources-by-default-in-lstk-status
Draft

anisaoshafi wants to merge 3 commits into
mainfrom
devx-1473-hide-resources-by-default-in-lstk-status

Conversation

@anisaoshafi

Copy link
Copy Markdown
Collaborator

Motivation

CloudControl in the emulator now reports IAM policies, including 1,500+ default ones, so lstk status prints thousands of lines of resources. The --no-resources flag that should have helped only worked with --json.

Solution

  • lstk status now shows only the emulator info and health, and does not fetch resources at all.
  • A new --resources flag lists deployed resources, in plain, interactive and --json output.
  • --no-resources now works in every output mode. It is hidden from help because it matches the default, but stays accepted since the VS Code extension passes it. It can't be combined with --resources.
  • The post-start tip now points at lstk status --resources.

Breaking change: the default output, including the --json envelope, no longer contains resources. Hence semver: major.

Before / after

Same running AWS emulator, which reports 19,540 resources:

Command Before After
lstk status 19,548 lines, ~2 s 6 lines, ~0.05 s
lstk status --no-resources 19,548 lines (flag ignored) 6 lines
lstk status --resources unknown flag 19,548 lines
lstk status --json 2.1 MB 282 bytes
lstk status --json --resources unknown flag 2.1 MB

Before, lstk status:

✔︎ LocalStack AWS Emulator is running
• Endpoint: localhost.localstack.cloud:4566
• Container: localstack-aws
• Version: 2026.11.1
• Uptime: 30h 58m 43s
~ 19540 resources · 2 services
  SERVICE  RESOURCE                                                                     REGION           ACCOUNT
  IAM      AIDevOpsAgentAccessPolicy                                                    cn-northwest-1   000000000000
  IAM      AIDevOpsAgentAccessPolicy                                                    us-isof-south-1  000000000000
  ... 19,539 more lines

After, lstk status:

✔︎ LocalStack AWS Emulator is running
• Endpoint: localhost.localstack.cloud:4566
• Container: localstack-aws
• Version: 2026.11.1
• Uptime: 30h 58m 50s
Docs
  • lstk status no longer lists deployed resources by default. It shows the emulator status only: endpoint, container, version, uptime and persistence.
  • New flag: lstk status --resources lists deployed resources (AWS emulator only). It works with --json and --endpoint-url.
  • lstk status --json leaves out resourceSummary and resources unless --resources is passed.
  • --no-resources is still accepted and does the same as the default, but is no longer shown in help.

Review

Human review advised: this changes default user-facing output and the --json contract, and semver: major makes the next release 2.0.0.

Closes DEVX-1473

@anisaoshafi anisaoshafi added semver: major docs: needed Pull request requires documentation updates labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: needed Pull request requires documentation updates semver: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant