Amazon OpenSearch Service ExecModule
Overview
AwsOpenSearchModule reads managed Amazon OpenSearch Service domains through the AWS control plane. Discover domain names and engine types in one region, then look up an exact domain for an upgrade review, configuration inventory, or deployment check.
Each execution makes one read-only lookup. Use a scheduled workflow to compare inventory with an approved list, or use a release workflow to check the configuration AWS reports before a change moves to review. For search availability and performance, pair configuration checks with workload-side monitoring.
Usage
- Set up an Amazon OpenSearch Service connection in the Integration Account Console. Verify the connection and confirm its status is
READY. - Add Amazon OpenSearch Service to a Workflow Studio task. Choose the verified connection under General > Connection.
- Set the AWS
region. Uselist_domainsfor a regional inventory ordescribe_domainwith an exact name for configuration and status. - Check the lookup's
statusbefore evaluating the result. For example, an upgrade review can use the engine version to route domains to the appropriate owner.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | No | list_domains | Select list_domains or describe_domain. |
region | string | Yes | — | Region containing the domains in commercial AWS or AWS GovCloud. |
engineType | string | No | Both engines | Filter list_domains by OpenSearch or Elasticsearch. Use this input only with list_domains. |
domainName | string | For describe_domain | — | Exact name with 3 to 28 lowercase letters, digits, or hyphens, beginning with a lowercase letter. Use this input only with describe_domain. |
Outputs
| Output | Meaning |
|---|---|
status / operation | success or error, and the recognized operation when available. |
items / count | Returned domain summaries and their count. |
requestId | AWS request reference when available. |
error | Redacted code, message, retryability, and HTTP status when available. |
Inventory items contain domainName and engineType. The exact-name operation returns one item with domainName and the following fields when AWS supplies the corresponding information.
| Describe fields | Meaning |
|---|---|
engineVersion | Configured search engine version. |
processing, created, deleted | Domain lifecycle and change indicators reported by AWS. |
instanceCount, zoneAwarenessEnabled | Configured data instance count and zone awareness. |
encryptionAtRestEnabled, nodeToNodeEncryptionEnabled, enforceHttps | Selected encryption and HTTPS settings. |
vpcConfigured | Indicates whether AWS reported VPC configuration for the domain. |
Evaluate these settings as configuration evidence. For example, vpcConfigured can inform a review, while a connectivity check must run from the relevant network.
IntegrationAccount Requirements
Use a verified Amazon OpenSearch Service connection with account name AWS and status READY. Store the access key ID in the protected AWS Access Key ID field and the secret access key in the protected AWS Secret Access Key field. The module signs AWS requests with Signature Version 4. Keep the credentials in the connection.
Grant es:ListDomainNames for regional inventory and es:DescribeDomain for exact domain reads. AWS requires resource * for inventory. Scope the describe permission to the domain ARNs the workflow needs, using the partition of the connected AWS account. Amazon OpenSearch Service IAM actions and resource types
Configuration
Use the AWS region that contains the domain. The module connects to the standard regional OpenSearch Service HTTPS endpoint. This connection contract uses a protected AWS access key pair and supports commercial AWS and AWS GovCloud.
Operations
list_domainsuses ListDomainNames to return managed domain names and engine types for the connected account in the selected region. Use the optionalengineTypeto inventory OpenSearch or legacy Elasticsearch domains separately.describe_domainuses DescribeDomain to return selected configuration and status for one exact domain in the selected region.
Errors and Failure Modes
- For
VALIDATION_ERROR, check the operation, region, filter value, and exact domain name. - For
INTEGRATION_ACCOUNT_ERROR, confirm the AWS connection is verified andREADYwith both protected credential fields populated. - For
DOMAIN_NOT_FOUND, verify the domain name, region, and account. For anAWS_OPENSEARCH_HTTP_<status>authorization error, check the operation's IAM action and resource scope. - For
INVALID_PROVIDER_RESPONSE, use the AWS request reference when available to investigate the response.DESTINATION_DENIEDindicates that a workflow network policy blocked the request. ForNETWORK_ERROR, check outbound connectivity and use bounded backoff whenerror.retryableis true. - Treat domain configuration changes as a separate workflow decision from the success of a configuration lookup.
Example
Find managed domains that still use the Elasticsearch engine before preparing an upgrade inventory.
{
"operation": "list_domains",
"region": "us-west-2",
"engineType": "Elasticsearch"
}
A successful inventory can return one matching domain.
{
"status": "success",
"operation": "list_domains",
"items": [
{
"domainName": "catalog-search",
"engineType": "Elasticsearch"
}
],
"count": 1
}
Pass catalog-search to describe_domain in the same region to gather its current configuration. Route the result to the search team for upgrade planning.
Notes
- AWS returns the regional inventory in a single response. Repeat the lookup with the applicable connection and region to inventory additional accounts or regions.
- Each call has a 15-second attempt timeout and a 50-second total timeout, with up to two SDK retries. Space scheduled reads and keep parallel inventory runs bounded to account for provider throttling. Amazon OpenSearch Service endpoints and quotas
- Both operations are safe to repeat. Use the account, region, and domain name together when comparing results across inventories.
- The module's scope is managed-domain inventory and configuration reads. Use a separate integration for search and indexing, OpenSearch Serverless, or changes to domain configuration.