WHAT YOU'LL LEARN
  • how to run DynamoDB-only in dev while using DynamoDB + OpenSearch in production

Overview
anchor

Deploying an OpenSearch domain for every development environment adds cost and infrastructure overhead. Since Webiny maintains feature parity between its DynamoDB-only and DynamoDB + OpenSearch setups, you can safely skip OpenSearch in dev without losing functionality.

The pattern is straightforward: add the <Infra.OpenSearch> extension only for the environments that need it.

Configuration
anchor

webiny.config.tsx

When no <Infra.OpenSearch> extension is present for an environment, Webiny deploys that environment with DynamoDB-only.

If your team does need OpenSearch in dev — for example to test search-specific behaviour or to share a dev environment — see Shared OpenSearch Cluster.