WHAT YOU'LL LEARN
  • how to enable and configure Amazon OpenSearch Service
  • how to share a single OpenSearch domain across multiple environments

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 and indexPrefix props:

webiny.config.tsx

The indexPrefix ensures each environment uses separate indexes within the shared domain, preventing data from one environment from being visible in another.

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.