/localstack:localstack-logsfrom localstack
Analyzes LocalStack logs to debug AWS API errors, troubleshoot Lambda functions, and identify error patterns using the lstk CLI.
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.
Analyze LocalStack logs to debug issues, identify errors, and understand AWS API interactions.
lstk CLI with a running emulator — see the localstack skill# Print available logs
lstk logs
# Follow logs in real time
lstk logs -f
# Last N lines
lstk logs -n 100
# Unfiltered output (lstk filters noise by default)
lstk logs -v
Reach for lstk logs -v whenever a log line you expect is missing — the default view drops low-signal output.
# Filter by service
lstk logs | grep -i s3
lstk logs | grep -i lambda
lstk logs | grep -i dynamodb
# Filter errors only
lstk logs | grep -i error
lstk logs | grep -i exception
# Filter by request ID (use -v so nothing is filtered out first)
lstk logs -v | grep "request-id-here"
lstk writes its own diagnostic log to lstk.log in the config directory — useful when the CLI itself misbehaves rather than the emulator:
lstk config path # the lstk.log sits alongside this file
Turn on verbose logging with an environment profile in config.toml, then lstk restart:
[[containers]]
type = "aws"
env = ["debug"]
[env.debug]
DEBUG = "1"
LS_LOG = "trace" # optional: request/response-level detail
LAMBDA_DEBUG = "1" # optional: Lambda debugging
Remove "debug" from env when you are done; trace logging is noisy. For a single throwaway run, LOCALSTACK_DEBUG=1 lstk start also works, but it is lost on the next plain lstk restart — see the localstack skill.
LocalStack logs include AWS API requests. Look for patterns like:
AWS <service>.<operation> => <status>
Example log entries:
AWS s3.CreateBucket => 200
AWS dynamodb.PutItem => 200
AWS lambda.Invoke => 200
lstk status lists the resources currently deployed in the emulator, which is often faster than grepping logs to answer "does this resource exist?":
lstk status
lstk --non-interactive status
Pick the view that matches the question:
# Summary: how many calls, how many failed, the latest failures
lstk logs -v -n 2000 | grep -cE "AWS [a-z0-9-]+\.[A-Za-z]+ =>"
lstk logs -v -n 2000 | grep -E "AWS [a-z0-9-]+\.[A-Za-z]+ => [45][0-9]{2}" | tail -5
# Errors: failed calls grouped by service.operation and status, most frequent first
lstk logs -v -n 2000 | grep -oE "AWS [a-z0-9-]+\.[A-Za-z]+ => [45][0-9]{2}( \([A-Za-z]+\))?" \
| sort | uniq -c | sort -rn
# Requests: every call to one operation, in order
lstk logs -v | grep -E "AWS dynamodb\.PutItem =>"
# Raw: stack traces and ERROR lines around a failure
lstk logs -v -n 2000 | grep -E -B2 -A15 "ERROR|Traceback"
Group errors before reading them: one root cause usually produces many identical lines, and the count tells you which one matters.
| Error | Possible Cause | Solution |
|---|---|---|
ResourceNotFoundException | Resource doesn't exist | Create the resource first; confirm with lstk status |
AccessDeniedException / ... is not authorized to perform | IAM enforcement denied the call | Generate the missing policy — see the localstack-iam skill |
501 / NotImplemented | Operation not covered by LocalStack | Check the service's coverage page on docs.localstack.cloud |
Unexpected 5xx with a chaos rule active | Injected fault | curl -s localhost:4566/_localstack/chaos/faults — see the localstack-chaos skill |
ValidationException | Invalid parameters | Verify request parameters |
ServiceException | Internal error | Check LocalStack logs for details |
# Lambda function logs appear in the emulator logs
lstk logs -v | grep -A 10 "Lambda"
# Or use CloudWatch Logs locally
lstk aws logs describe-log-groups
lstk aws logs get-log-events \
--log-group-name /aws/lambda/my-function \
--log-stream-name <stream-name>
For Lambda debug mode, add LAMBDA_DEBUG = "1" to the debug profile above.
# Check overall health
curl http://localhost:4566/_localstack/health | jq
# Check specific service
curl http://localhost:4566/_localstack/health | jq '.services.s3'
lstk status)lstk logs -v — the default view is filtereddebug profile in config.toml and lstk restartlstk.log in the directory reported by lstk config pathlocalstack-app-inspector skillWhat SKILL.md sets; muted values are Claude Code's defaults
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