Cloud Infrastructure > Extensions > Amazon OpenSearch
Amazon OpenSearch
Learn how to configure and share Amazon OpenSearch Service in your Webiny project.
- how to enable and configure Amazon OpenSearch Service
- how to share a single OpenSearch domain across multiple environments
Overview
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
Adjusting Configuration
Use the Infra.Core.Pulumi extension to adjust the OpenSearch domain configuration — for example, changing the instance type, engine version, or advanced options:
Using a Shared OpenSearch Domain
For development purposes, you can share a single OpenSearch domain across multiple environments using the domainName and indexPrefix props:
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
After making changes, redeploy by running the webiny deploy command:
Use --env <name> to target a specific environment if needed.