Amazon Bedrock Provider
LocalStack 4.0 adds emulation for Amazon Bedrock so you can build and test AI-driven applications locally without consuming cloud credits.
- Emulates foundation models using publicly available Ollama models, with Mistral as the default.
- Supports the Invoke API, the Converse API, and batch processing.
- Change the model with the
DEFAULT_BEDROCK_MODEL variable; set BEDROCK_PREWARM to pre-warm the engine and download the model before the first invocation.
LocalStack Event Studio
Event Studio is a preview tool for inspecting and debugging event-driven systems across AWS services.
- Collects events and lets you inspect payloads and metadata as data moves between services.
- Replays events at intermediate steps to debug consuming services.
- Surfaces IAM policy gaps and service misconfigurations. Supports Lambda, EventBridge, SQS, SNS, DynamoDB, and S3.
- Available via the Web Application or CLI at
eventstudio.localhost.localstack.cloud:4566.
LocalStack SDK for Python
A preview Python SDK provides an object-oriented interface to the internal /_localstack and /_aws developer endpoints that previously required cURL or REST clients.
- Save, list, load, and delete Cloud Pods, and manage fault configurations for the Chaos API.
- Reset service state automatically and list SQS queue messages without side effects.
- Retrieve and delete sent SES messages and manage SNS platform messages, SMS, and subscription tokens.
New Default Providers for EventBridge and API Gateway
The native EventBridge and API Gateway providers, introduced in earlier 3.x releases, are now the defaults in 4.0.
- EventBridge ships a native Python event rule engine; set
EVENT_RULE_ENGINE=java to use the AWS EventRuler library for higher parity. - API Gateway adds request and response data mappings, VTL mapping template rendering,
AWS_PROXY Lambda integration, and REQUEST Lambda authorizers. - Fall back to the old implementations with
PROVIDER_OVERRIDE_EVENTS=v1 or PROVIDER_OVERRIDE_APIGATEWAY=legacy. Both are scheduled for removal in the next major release.
Kubernetes Runtime and Ephemeral Instances CLI
LocalStack can now run more services on Kubernetes, and Ephemeral Instances are managed from the CLI.
- Run DocumentDB, MWAA, and RDS (MySQL and MSSQL) on Kubernetes by setting
CONTAINER_RUNTIME=kubernetes. - Create, list, fetch logs for, and delete cloud Ephemeral Instances with
localstack ephemeral create and related commands. - Lambda Debug Mode now hot-reloads its config file at the path set by
LAMBDA_DEBUG_MODE_CONFIG_PATH.
Service Parity Improvements
- DynamoDB emulation upgraded to DynamoDB Local 2.0, adding table deletion protection, the
ReturnValuesOnConditionCheckFailure parameter, configurable maximum throughput for on-demand tables, and BatchExecuteStatement and ExecuteTransactionRequest support. - Python 3.13 Lambda runtime is now supported, and Lambda Event Source Mappings support tagging.
- CloudFormation custom resources now support
UPDATE and DELETE operations. - KMS supports deriving shared secrets using the key agreement algorithm.