Skip to content
Get Started for Free

App Inspector

App Inspector allows users to view, collect, and inspect data exchanges, including payloads and metadata, between AWS services. It enhances system observability by displaying the data exchanged at every stage, facilitating clear understanding of operation flows. In addition, it serves as a single point of truth to understand potential errors, service configuration mismatches, and IAM permission issues.

With App Inspector, you can:

  • Observe and understand the flow of operations through your system.
  • Identify errors and obtain detailed information for corrections.
  • Get immediate feedback on any misconfigurations in your services.
  • Gain insights into IAM policies and detect missing permissions.

App Inspector requires LocalStack 2026.04.0 or later. The IAM explanations, suggested fixes, and Auto-Derived Policies described below require LocalStack 2026.11.0 or later, and in VS Code, the LocalStack Toolkit for VS Code 1.16.0 or later.

App Inspector is available on every plan. The Hobby plan stores up to 10 operations. The Base plan and higher store up to 1,000 operations, and add error analysis and request and response payloads. Enforce IAM requires the Base plan or higher, and Auto-Derived Policies require the Ultimate plan. See Licensing & Tiers for details.

Understanding service-to-service information flow

When a service call doesn’t reach its intended target, App Inspector shows exactly where it stopped and why, tracing the flow of information between services at every hop. You get a precise answer without deploying to AWS or adding instrumentation.

Verifying service-to-service payloads

Inspect the exact data passed between services at every hop of your workflow. For example, confirming that a Lambda function is passing the correct payload to SNS, or that an SQS message body matches what the downstream consumer expects, before it becomes a production issue.

Catching IAM misconfigurations early

App Inspector runs against the LocalStack emulator, which monitors use of IAM policies. Missing or overly restrictive permissions show up immediately in your local environment, where they’re fast and cheap to fix, rather than at deployment time in the cloud. App Inspector also suggests the policy changes that fix a denied call, and a policy for each principal based on the calls it makes. See IAM Permission Checks.

You can turn App Inspector on from the LocalStack Web Application, from the terminal with lstk, or with a configuration variable.

In the LocalStack Web Application, click Enable App Inspector Now on the App Inspector page.

To enable it with lstk 1.5.0 or later, start the AWS emulator and run:

Terminal window
lstk inspect enable

To turn it off again, run lstk inspect disable. See lstk inspect for the full reference.

Turning App Inspector on from the Web Application or with lstk lasts until the emulator restarts. To keep it on after a restart, start LocalStack with APP_INSPECTOR=1.

Enable App Inspector in CI or a setup script

Section titled “Enable App Inspector in CI or a setup script”

lstk inspect enable runs without prompts when you pass --non-interactive, so you can use it in CI pipelines and devcontainer setup scripts. Run it after the emulator is up:

Terminal window
lstk start
lstk --non-interactive inspect enable

For scripts that parse the result, use the global --json flag, which prints one JSON object and reports enabled and changed:

Terminal window
lstk --json inspect enable

To turn on App Inspector for an AWS emulator that lstk did not start, such as one that runs in Docker Compose, pass --endpoint-url:

Terminal window
lstk --endpoint-url http://localhost:4566 --non-interactive inspect enable

App Inspector is built into the LocalStack Toolkit for VS Code, so you can trace operation flows and inspect payloads without leaving your editor. Once LocalStack is running, open the App Inspector panel directly in the LocalStack Toolkit extension to view operations and drill into service interactions.

App Inspector panel in the LocalStack Toolkit for VS Code showing the request list, with requests that contain errors flagged

You can access App Inspector directly in the LocalStack Web Application. Navigate to App Inspector in your browser to view operations captured from your running LocalStack instance, inspect payloads, and trace service connections.

App Inspector lists one row per request, such as a CLI command, an SDK call, or a Lambda invocation, with its Time, Action, Consumer, and the number of operations it triggered. Operations triggered later by that request, including asynchronous ones such as an SQS message processed by a Lambda function, are grouped under the same request. Requests that contain errors or IAM warnings are flagged in Request Details, so you can identify problems at a glance.

Use All, Errors, and Warnings to filter the list by status, and Consumer to filter by service.

App Inspector request list in the LocalStack Web Application, with one row per request and the All, Errors, Warnings, and Consumer filters above it

Use the search box above the list to filter by any text fragment, such as a resource name, an ARN segment, a status message, or a payload snippet. Search is case-insensitive, matches substrings anywhere in the field, and covers the full result set rather than just the requests currently loaded on screen.

Select a request to see the operations it triggered. Switch between three views:

  • Flow: an interactive graph of the request. Each node is an operation, and each edge follows a call between services, making it easy to see how your services connect.
  • Operations: a nested list of the request’s operations with a timeline showing when each one started and how long it took.
  • Sequence: resources appear as lanes across the top, and calls run top to bottom in the order they happened. Use it to confirm that events fired, and in the order you expect.

The following Flow view shows a POST /bookings request to a hotel booking app, which runs from API Gateway through Lambda, DynamoDB, SNS, and SQS to a second Lambda function whose SES SendEmail call fails, highlighted in red.

App Inspector Flow view of a hotel booking request, from API Gateway through Lambda, DynamoDB, SNS, and SQS to a failed SES SendEmail call, with the selected operation’s details below

The Operations view of the same request lists its nine operations with their start times and durations, which shows the 20-second gap between the SQS message and the Lambda function that processes it.

App Inspector Operations view of the same request, listing its operations as a nested tree with a timeline

The Sequence view shows the same calls in order, with one lane per resource, from the POST /bookings call at the top to the failed SendEmail call at the bottom.

App Inspector Sequence view of the same request, with one lane per resource and the calls in the order they happened

Click an operation in any view to drill down into the specifics of that interaction. The details panel shows the operation’s status and has these tabs:

  • Details: the service, action, resource, ARN, account, region, start time, and duration.
  • Payload: the request the operation sent.
  • Response: the response, or the error the operation returned.
  • Permissions: how IAM evaluated the call. See Permissions tab.
  • Logs: the function’s logs, for Lambda functions only.
  • Advanced: the span, trace, and request IDs.

App Inspector evaluates IAM policies for the operations it records, flags calls that AWS would reject, and suggests the policies your application needs. Use it to find a missing permission, see which principal needs it, and fix the policies that block it. LocalStack also explains these IAM decisions in its error messages and logs. See Explainable IAM.

Open an operation and select the Permissions tab to see how IAM evaluated the call. The tab shows the principal that made the call, such as a Lambda function’s execution role, and a Result for each action and resource the call needed:

  • Allowed: a policy allows it.
  • Not allowed: no policy allows it, or a permissions boundary or service control policy has no Allow for it.
  • Explicitly denied: a Deny statement blocks it.

A call to a resource in another account also shows a Cross-account label.

When Enforce IAM is on, a call that IAM doesn’t allow fails, and its request is counted under Errors in the request list. When it’s off, the call succeeds, and App Inspector flags it as a warning and counts its request under Warnings.

Fix a denied call

For a call that isn’t allowed, the top of the Permissions tab lists the changes that would allow it. For example, the following PutEvents call sends events to three event buses. IAM explicitly denies it on the first bus, the permissions boundary doesn’t allow it on the second, and the third is allowed. App Inspector suggests two changes: detach or delete the policy that denies the call, and allow the action in the permissions boundary.

App Inspector Permissions tab for an EventBridge PutEvents call, showing the suggested changes with Copy agent prompt, and an Explicitly denied, a Not allowed, and an Allowed result

The same Permissions tab scrolled down, showing the Not allowed by and Allowed by sections and highlighting the permissions boundary statement that nearly allows the call and the statement to add

You can make the changes in two ways:

  • With your AI coding agent: click Copy agent prompt and paste the prompt into the coding agent you already use. The prompt describes the denied call and the changes, and asks the agent to make them in your infrastructure code, such as CDK, Terraform, or CloudFormation.
  • Manually: follow the steps and edit the policies yourself. Below the results, the policies that decided each result are grouped under Denied by, Not allowed by, and Allowed by. Each policy shows whether it belongs to the caller’s or the target’s account, and highlights the statements to change: REMOVE marks a Deny statement that blocks the call, ADD marks a statement that would allow it, and NEAR MISS marks a statement that allows the action, but not on this resource. To copy a policy with the changes applied, open its ••• menu and click Copy policy.

The Enforce IAM toggle next to the Requests and Auto-Derived Policies tabs turns IAM policy enforcement on or off for the running LocalStack instance.

  • On: calls that IAM doesn’t allow fail with the same error AWS returns, such as AccessDeniedException.
  • Off: calls succeed, and App Inspector still flags the ones AWS would reject. Use this to collect every missing permission in one run without your application stopping at the first failure.

The toggle changes the running instance only. After a restart, LocalStack goes back to its configuration, such as ENFORCE_IAM=1. Requests recorded before you change the toggle keep the result they had.

App Inspector builds suggested policies from the calls it observes: an identity-based policy for each principal, such as a role or a user, and a resource-based policy for a resource that other principals call, such as a Lambda function that a service invokes. Open Auto-Derived Policies to see them. The list updates as your application makes calls, and highlights the policies that changed. The policies are suggestions based on what your application did, not the policies currently attached to your resources.

App Inspector Auto-Derived Policies tab listing a suggested policy for each principal, with the services and number of actions it covers

Select a policy to see the actions it covers and its policy document. To copy it as JSON, open the ••• menu next to the policy and click Copy policy.

A suggested policy for one principal, listing its six actions and the policy document

Click Clear Suggestions to start over, for example before you test another part of your application.

Auto-Derived Policies show the same suggested policies as the summary policy in IAM Policy Stream.

Review a suggested policy before you attach it:

  • A role’s suggested policy can combine trust statements, such as sts:AssumeRole for lambda.amazonaws.com, with permission statements. Split it into a trust policy and a permissions policy before attaching it.
  • Resources are scoped to what was observed. For example, CloudWatch Logs permissions point at a single log stream, so you may need a wildcard such as arn:aws:logs:<region>:<account>:log-group:/aws/lambda/<function-name>:*.
  • Policies are derived from calls, not from existing resources. If your application calls a resource that doesn’t exist, such as a misspelled table name, the suggested policy grants access to it anyway.

Operations of every service appear in App Inspector, except calls to IAM, STS, and CloudWatch Logs, and a few internal calls such as sqs:GetQueueUrl. The following services have been optimized for improved visual layout in the Flow view:

Was this page helpful?