App Inspector
Introduction
Section titled “Introduction”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.
Requirements
Section titled “Requirements”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.
Use Cases
Section titled “Use Cases”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.
Enable App Inspector
Section titled “Enable App Inspector”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:
lstk inspect enableTo 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:
lstk startlstk --non-interactive inspect enableFor scripts that parse the result, use the global --json flag, which prints one JSON object and reports enabled and changed:
lstk --json inspect enableTo turn on App Inspector for an AWS emulator that lstk did not start, such as one that runs in Docker Compose, pass --endpoint-url:
lstk --endpoint-url http://localhost:4566 --non-interactive inspect enableLocalStack Toolkit for VS Code
Section titled “LocalStack Toolkit for VS Code”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.

Web Application
Section titled “Web Application”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.
Requests
Section titled “Requests”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.

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.
Request Views
Section titled “Request Views”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.

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.

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.

Operation Details
Section titled “Operation Details”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.
IAM Permission Checks
Section titled “IAM Permission Checks”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.
Permissions tab
Section titled “Permissions tab”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
Allowfor it. - Explicitly denied: a
Denystatement 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.


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
Denystatement 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.
Enforce IAM
Section titled “Enforce IAM”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.
Auto-Derived Policies
Section titled “Auto-Derived Policies”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.

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.

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:AssumeRoleforlambda.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.
Supported Services
Section titled “Supported Services”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: