WHAT YOU'LL LEARN
  • how to enable and configure Amazon OpenSearch Service
  • how to connect Webiny to a shared OpenSearch domain

Overview
anchor

Webiny supports Amazon OpenSearch Service for advanced search and filtering. By default it is disabled. You configure it via the Infra.OpenSearch component in webiny.config.tsx.

Enabling OpenSearch
anchor

webiny.config.tsx

Adjusting Configuration
anchor

Use the Infra.Core.Pulumi extension to adjust the OpenSearch domain configuration — for example, changing the instance type, engine version, or advanced options:

extensions/MyCorePulumiHandler.ts

Using a Shared OpenSearch Domain
anchor

For development purposes, you can share a single OpenSearch domain across multiple environments using the domainName, indexPrefix, endpoint, username, and password props.

For guidance on deploying the cluster itself and a full walkthrough of the shared setup, see Shared OpenSearch Cluster.

Sharing an OpenSearch domain is only recommended for development environments. In production, use a dedicated domain per environment.

Redeploying After Changes
anchor

After making changes, redeploy by running the webiny deploy command:

Use --env <name> to target a specific environment if needed.