| name | localstack |
| description | 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. |
LocalStack Lifecycle Management
Manage the LocalStack container lifecycle including starting, stopping, and monitoring the local cloud environment.
Capabilities
- Start LocalStack with custom configuration
- Stop running LocalStack instances
- Check LocalStack status and health
- Restart LocalStack with new settings
- View LocalStack version and configuration
Common Commands
Start LocalStack
localstack start -d
DEBUG=1 localstack start -d
LOCALSTACK_AUTH_TOKEN=<token> localstack start -d
Check Status
localstack status
curl http://localhost:4566/_localstack/health
docker ps | grep localstack
Stop LocalStack
localstack stop
docker stop localstack-main
View Logs
localstack logs -f
localstack logs --tail 100
Configuration Options
Key environment variables for LocalStack:
| Variable | Description | Default |
|---|
DEBUG | Enable debug logging | 0 |
PERSISTENCE | Enable persistence across restarts | 0 |
LOCALSTACK_AUTH_TOKEN | Auth token for Pro features | None |
GATEWAY_LISTEN | Port configuration | 4566 |
Troubleshooting
- Container won't start: Check if port 4566 is already in use
- Services unavailable: Verify Docker is running and has sufficient resources
- Auth errors: Ensure
LOCALSTACK_AUTH_TOKEN is set for Pro features