/localstack:localstack-statefrom localstack
Manage LocalStack state and snapshots with lstk. Save, load, export, import, inspect, or reset state per service, work with Cloud Pods or S3-backed snapshots, and enable persistence across restarts.
Ships in localstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Save, load, and manage LocalStack state for reproducible development environments and state snapshots, using lstk snapshot and its lstk save / lstk load aliases.
lstk installed and authenticated (lstk login, or LOCALSTACK_AUTH_TOKEN in CI) — see the localstack skillsave (lstk load will start one for you if needed)lstk save / lstk load are a single snapshot interface for every backend. The destination REF decides where the state goes.
| REF form | Destination |
|---|---|
| (omitted) | Auto-named local file ./snapshot-<timestamp>-<hex>.snapshot |
./my-snapshot.snapshot | Explicit local path |
pod:my-baseline | Cloud Pod on the LocalStack platform |
pod:my-baseline:3 | Version 3 of that Cloud Pod |
my-pod s3://my-bucket/prefix | Your own S3 bucket |
# Save to an auto-named file in the current directory
lstk save
# Save to a specific path (the .snapshot extension is added if omitted)
lstk save ./my-snapshot.snapshot
lstk save /tmp/my-state
# Limit the snapshot to a subset of services
lstk save --services s3,lambda
# Loads ./my-baseline or ./my-baseline.snapshot
lstk load my-baseline
# Load from an explicit path
lstk load ./checkpoint.snapshot
Cloud Pods store state on the LocalStack platform, enabling team collaboration and remote state management. They require authentication (lstk login or LOCALSTACK_AUTH_TOKEN).
lstk save pod:my-baseline
# Only part of the state
lstk save pod:my-baseline --services s3,lambda
Every save to an existing pod name creates a new version.
lstk load pod:my-baseline
# A specific version
lstk load pod:my-baseline:3
# Preview the changes without applying them (Cloud Pod refs only)
lstk load pod:my-baseline --dry-run
# Your Cloud Pods
lstk snapshot list
# Everything in your organisation
lstk snapshot list --all
# Metadata: created date, size, LocalStack version, per-service resource counts
lstk snapshot show pod:my-baseline
lstk snapshot show pod:my-baseline:3
# Version history
lstk snapshot versions pod:my-baseline
# Delete (cloud snapshots only, cannot be undone)
lstk snapshot remove pod:my-baseline
lstk snapshot remove pod:my-baseline --force
Store snapshots in a bucket you own. Credentials are read from AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, from --profile, or from the profile named by AWS_PROFILE — never put credentials in the URL.
lstk save my-pod s3://my-bucket/prefix
lstk save my-pod s3://my-bucket/prefix --profile my-aws-profile
lstk load my-pod s3://my-bucket/prefix
lstk snapshot list s3://my-bucket/prefix
lstk load controls how snapshot state combines with state already in the emulator:
| Strategy | Behavior |
|---|---|
account-region-merge (default) | Snapshot wins on overlapping (service, account, region) |
overwrite | Wipe running state, then load |
service-merge | Snapshot wins per resource; non-overlapping resources are combined |
lstk load pod:my-baseline --merge=overwrite
You can also set LSTK_MERGE_STRATEGY instead of passing the flag.
For the AWS emulator, set the snapshot field on the container block so a snapshot loads on every start:
[[containers]]
type = "aws"
snapshot = "pod:my-baseline"
Override or skip it for a single run:
lstk start --snapshot pod:other-baseline
lstk start --no-snapshot
For automatic persistence across restarts without explicit save/load:
lstk start --persist
lstk restart --persist
--persist injects LOCALSTACK_PERSISTENCE=1 and writes state to the mounted volume, which is reloaded on the next start. Find that directory with lstk volume path; wipe it with lstk volume clear.
You can also set PERSISTENCE = "1" in an [env.*] profile in config.toml to make it the default for every run.
See what the emulator currently holds, per service, account, and region, before saving or resetting:
lstk status # human-readable resource list
lstk --json status | jq # the same, machine-readable
curl -s localhost:4566/_localstack/pods/state/metamodel | jq # full state metamodel
# Discard all in-memory resources, keep the emulator running
lstk reset
# Reset only some services
curl -s -X POST localhost:4566/_localstack/state/s3/reset
curl -s -X POST localhost:4566/_localstack/state/lambda/reset
# Wipe the on-disk volume (stop the emulator first)
lstk volume clear
The emulator exposes file export and import over HTTP. Use it when lstk is not available, for example from a test harness that only reaches the gateway:
# Export (optionally only some services) to a file
curl -s "localhost:4566/_localstack/pods/state?services=s3,lambda" -o state.snapshot
# Import a file into the running emulator
curl -s -X POST localhost:4566/_localstack/pods \
-H 'Content-Type: application/octet-stream' --data-binary @state.snapshot
| Feature | Local snapshot files | Cloud Pods (pod:) | Your S3 bucket (s3://) |
|---|---|---|---|
| Storage | Local files | LocalStack platform | Your AWS account |
| Extra auth | None beyond lstk | LocalStack auth token | AWS credentials |
| Team sharing | Manual file sharing | Built-in | Via bucket permissions |
| Versioning | Manual | Built-in (snapshot versions) | Manual |
| Offline use | Yes | No | No |
Note that lstk itself always requires a LocalStack account and license, regardless of which snapshot backend you use.
--services to keep snapshots small when you only care about part of the stack--dry-run before loading an unfamiliar Cloud Pod into a populated emulatorlstk start --persist for simple state retention across restartsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
localstack, state-management, snapshots, cloud-pods, s3-backup
npx claudepluginhub localstack/skills --plugin localstack12 skills in this plugin
/localstack-app-inspectorTrace requests through LocalStack with App Inspector. Use when users want to see how a request flowed across AWS services, inspect traces, spans, events, or payloads, debug event-driven or service-to-service flows, or explain an IAM denial, get LocalStack's suggested policy fix, or derive least-privilege policies from a run./localstack-replicatorCopy resources from a real AWS account into LocalStack with AWS Replicator. Use when a local stack depends on shared AWS resources that already exist (VPCs, SSM parameters, IAM roles, ECR repositories, secrets) and the user wants them replicated locally instead of re-creating them./localstack-azureRun the LocalStack Azure emulator and drive it with the Azure CLI. Use when users want to start LocalStack for Azure, run az commands locally (resource groups, storage, blobs, Bicep/ARM deployments), or set up lstk az./localstack-chaosInject faults and network latency into LocalStack to test resilience. Use when users want chaos engineering, to simulate AWS outages or throttling, return errors from specific services or operations, add latency, or verify retry and fallback logic./localstack-deployDeploy infrastructure to LocalStack using IaC tools. Use when users want to deploy Terraform, CDK, CloudFormation, SAM, or Pulumi to LocalStack, check which resources LocalStack supports before deploying, or need help with lstk deploy, the lstk proxy commands (lstk terraform, lstk cdk, lstk sam, lstk aws), or the pulumilocal wrapper./localstack-iamAnalyze and enforce IAM policies in LocalStack. Use when users want to enable or switch IAM enforcement, detect permission violations, fix an access denial, auto-generate least-privilege policies, or test IAM policies locally before deploying to AWS.Other plugins' skills for the same job