Skip to content

Implement --dry-run flag for snapshot load#272

Draft
anisaoshafi wants to merge 1 commit into
mainfrom
devx-869-implement-dry-run-flag-for-snapshot-load
Draft

Implement --dry-run flag for snapshot load#272
anisaoshafi wants to merge 1 commit into
mainfrom
devx-869-implement-dry-run-flag-for-snapshot-load

Conversation

@anisaoshafi
Copy link
Copy Markdown
Collaborator

@anisaoshafi anisaoshafi commented May 28, 2026

Added --dry-run to lstk snapshot load.
When passed with a pod ref, it calls GET /_localstack/pods/{name}/diff instead of loading, and shows a per-service preview of what would be added or modified, without touching running state.

Local snapshot refs return an error since the emulator has no diff endpoint for them.

The --merge flag is also accepted to contextualize the output.

event output
loading Screenshot 2026-05-28 at 19 41 21
success image
error image

@anisaoshafi anisaoshafi force-pushed the devx-869-implement-dry-run-flag-for-snapshot-load branch 3 times, most recently from 486c7a0 to 6eba568 Compare May 28, 2026 17:36
@anisaoshafi anisaoshafi force-pushed the devx-869-implement-dry-run-flag-for-snapshot-load branch from 6eba568 to 6cd63f7 Compare May 28, 2026 17:56
@anisaoshafi anisaoshafi marked this pull request as ready for review May 29, 2026 11:12
@anisaoshafi anisaoshafi marked this pull request as draft May 29, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant