# Testing Bedrock AgentCore in LocalStack: What Still Needs AWS Staging

Use local Runtime, Gateway and Memory tests for quick feedback without treating an emulator pass as proof of cloud behavior.

By Paras Madan | 2026-12-01


A local AgentCore test should catch a broken tool response before you pay for another deploy. It should not be the test that tells you whether your production permissions or runtime behavior are correct.

[LocalStack's November 30 re:Invent announcement](https://blog.localstack.cloud/localstack-expands-aws-testing-and-validation/) adds local support for Amazon Bedrock AgentCore Runtime, Gateway and Memory. Its [service guide](https://docs.localstack.cloud/aws/services/bedrock-agentcore/) shows how to run an agent in a local Docker-backed session, call supported Gateway tools and exercise Memory APIs. That is separate from the Bedrock model API. Choose whether you are testing the application plumbing or the model's answers before you configure either one.

## Make one realistic test boring enough to repeat

Use a small test agent that reads the status of a synthetic order from a fixture through a Gateway tool. Give it one known order ID and one that does not exist. Verify that it sends the expected argument and that the right result comes back. For the missing order, check that the application does not invent a status. Run a second turn in the same session if your app depends on carrying a prior choice forward.

LocalStack's launch links a sample application that combines Runtime, Gateway and Memory. Use the published API coverage page to map the exact operations your own test needs before copying the example. A service appearing in the catalogue does not mean every API operation is implemented. Pin the emulator version in CI so changes in emulation do not get confused with changes in your code.

## Split model evaluation from plumbing

LocalStack describes a mock Bedrock mode that returns placeholder responses, plus options for routing to a local or hosted model. Mock responses are useful for checking that the code handles the shape of a result and follows the expected branch. They will not tell you whether a real model interprets a vague order request correctly. Use a local model for a useful development check if you have one, then replay a separate test set against the actual production model in approved staging. Don't send customer data to a hosted test backend just because the application process itself is local.

## Put real platform behavior on the staging checklist

LocalStack documents that it does not emulate AgentCore Runtime V2 snapshot restore or enforce Memory expiration. A local test that reads back a record can prove the application requested the right record, not that the cloud will delete it when expected. Test runtime startup, expiry and real access controls in a disposable AWS environment with synthetic data and restricted roles. Keep preview, staging and production credentials separate.

One useful split is to require the deterministic local fixture on every pull request, and require the cloud staging checks for any change to runtime configuration, authorization or retention. If a test passes locally and fails in AWS, compare the operation and platform behavior before treating it as a model regression. Faster feedback is the win here. The emulator should make the release checklist shorter to execute, not remove the checks that only the cloud can prove.

I'm Paras. I help AI infrastructure teams explain what their tools can test, and where developers still need a real environment.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
