Skip to main content

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​

  1. Set up an Amazon OpenSearch Service connection in the Integration Account Console. Verify the connection and confirm its status is READY.
  2. Add Amazon OpenSearch Service to a Workflow Studio task. Choose the verified connection under General > Connection.
  3. Set the AWS region. Use list_domains for a regional inventory or describe_domain with an exact name for configuration and status.
  4. Check the lookup's status before evaluating the result. For example, an upgrade review can use the engine version to route domains to the appropriate owner.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringNolist_domainsSelect list_domains or describe_domain.
regionstringYes—Region containing the domains in commercial AWS or AWS GovCloud.
engineTypestringNoBoth enginesFilter list_domains by OpenSearch or Elasticsearch. Use this input only with list_domains.
domainNamestringFor 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​

OutputMeaning
status / operationsuccess or error, and the recognized operation when available.
items / countReturned domain summaries and their count.
requestIdAWS request reference when available.
errorRedacted 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 fieldsMeaning
engineVersionConfigured search engine version.
processing, created, deletedDomain lifecycle and change indicators reported by AWS.
instanceCount, zoneAwarenessEnabledConfigured data instance count and zone awareness.
encryptionAtRestEnabled, nodeToNodeEncryptionEnabled, enforceHttpsSelected encryption and HTTPS settings.
vpcConfiguredIndicates 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_domains uses ListDomainNames to return managed domain names and engine types for the connected account in the selected region. Use the optional engineType to inventory OpenSearch or legacy Elasticsearch domains separately.
  • describe_domain uses 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 and READY with both protected credential fields populated.
  • For DOMAIN_NOT_FOUND, verify the domain name, region, and account. For an AWS_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_DENIED indicates that a workflow network policy blocked the request. For NETWORK_ERROR, check outbound connectivity and use bounded backoff when error.retryable is 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.