Skip to content

OpenSearch

CloudMock emulates Amazon OpenSearch Service, supporting domain management, configuration, upgrades, tagging, and basic document indexing and search.

OperationStatusNotes
CreateDomainSupportedCreates an OpenSearch domain
DescribeDomainSupportedReturns domain details
ListDomainNamesSupportedLists all domain names
DeleteDomainSupportedDeletes a domain
UpdateDomainConfigSupportedUpdates domain configuration
DescribeDomainConfigSupportedReturns domain configuration
AddTagsSupportedAdds tags to a domain
RemoveTagsSupportedRemoves tags from a domain
ListTagsSupportedLists tags for a domain
UpgradeDomainSupportedInitiates a domain upgrade
GetUpgradeStatusSupportedReturns upgrade status
IndexDocumentSupportedIndexes a document
SearchSupportedPerforms a basic search
ClusterHealthSupportedReturns cluster health status
import { OpenSearchClient, CreateDomainCommand } from '@aws-sdk/client-opensearch';
const client = new OpenSearchClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateDomainCommand({
DomainName: 'my-domain',
EngineVersion: 'OpenSearch_2.11',
}));
import boto3
client = boto3.client('opensearch',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_domain(
DomainName='my-domain',
EngineVersion='OpenSearch_2.11')
cloudmock.yml
services:
opensearch:
enabled: true
  • No actual OpenSearch cluster is provisioned
  • Search returns basic in-memory results, not full OpenSearch query DSL
  • Cluster health always reports green
  • Domain upgrades are simulated status changes