skills/state-management/SKILL.md
Manage LocalStack state and snapshots. Use when users want to save, load, export, or import LocalStack state, work with Cloud Pods, create local snapshots, or enable persistence across restarts.
npx skillsauth add localstack/skills localstack-stateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Save, load, and manage LocalStack state for reproducible development environments and state snapshots.
Local snapshots allow you to export LocalStack state to files and import them back. This works without requiring a Pro subscription.
# Export current state to a local file
localstack state export my-state.zip
# Export to a specific path
localstack state export /path/to/backup/state.zip
# Import state from a local file
localstack state import my-state.zip
# Import from a specific path
localstack state import /path/to/backup/state.zip
Cloud Pods store state in LocalStack's cloud platform, enabling team collaboration and remote state management.
Cloud Pods require a LocalStack Pro subscription and auth token:
export LOCALSTACK_AUTH_TOKEN=<your-token>
# Save current state to a Cloud Pod
localstack pod save my-pod-name
# Save with a message
localstack pod save my-pod-name --message "Initial setup with S3 and DynamoDB"
# Load state from a Cloud Pod
localstack pod load my-pod-name
# Load and merge with existing state
localstack pod load my-pod-name --merge
# List all available Cloud Pods
localstack pod list
# Delete a Cloud Pod
localstack pod delete my-pod-name
# View Cloud Pod details
localstack pod inspect my-pod-name
For automatic persistence across LocalStack restarts (without explicit export/import):
# Enable local persistence
PERSISTENCE=1 localstack start -d
# State is saved to .localstack/ directory
# Survives container restarts
| Feature | Local Snapshots (export/import) | Cloud Pods (save/load) | |---------|----------------------------|------------------------| | Storage | Local files | LocalStack cloud | | Pro required | No | Yes | | Team sharing | Manual file sharing | Built-in | | Version control | Can commit files | Cloud-managed | | Offline use | Yes | No |
state export/import for local development and CI/CD pipelinesPERSISTENCE=1 for simple state retention across restartsdevelopment
Analyze LocalStack logs and debug issues. Use when users need to view LocalStack logs, debug AWS API errors, troubleshoot Lambda functions, identify error patterns, or enable debug mode.
testing
Manage LocalStack container lifecycle. Use when users need to start, stop, restart, or check status of LocalStack, configure LocalStack environment variables, or troubleshoot LocalStack container issues.
tools
Manage LocalStack Extensions. Use when users want to install, uninstall, list, or configure LocalStack extensions, or develop custom extensions to extend LocalStack functionality.
testing
Analyze and enforce IAM policies in LocalStack. Use when users want to enable IAM enforcement, detect permission violations, auto-generate least-privilege policies, or test IAM policies locally before deploying to AWS.