Amazon OpenSearch Service system tables schema and example queries
Table schemas
domains
Full name: "s3tablescatalog/aws-catalog"."opensearch"."domains". Partitioned by bucket(32, id).
The domains system table contains one row for each domain in your account and Region.
The following table describes the columns of the domains table.
| Column | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier of the asset. |
ingestion_time | timestamptz | Yes | Time this asset record was ingested into the system table, in UTC. |
update_time | timestamptz | No | Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
schema_version | string | Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
created_time | timestamptz | No | Time the resource was created, in UTC. |
name | string | No | The user-provided business name for the asset. |
description | string | No | The user-provided business description for the asset. |
resource_name | string | Yes | The resource's technical name. |
resource_description | string | No | The resource's technical description. |
application_logs_enabled_enum | string | No | Whether the log type is published. Values: Enabled, Disabled. |
application_logs_log_group_arn | string | No | The ARN of the CloudWatch Logs log group that the logs are published to. |
audit_logs_enabled_enum | string | No | Whether the log type is published. Values: Enabled, Disabled. |
audit_logs_log_group_arn | string | No | The ARN of the CloudWatch Logs log group that the logs are published to. |
auto_software_update_enum | string | No | Whether automatic service software updates are enabled. Values: Enabled, Disabled. |
auto_tune_state_enum | string | No | The current state of Auto-Tune on the domain. Values: Enabled, Disabled, EnableInProgress, DisableInProgress, DisabledAndRollbackScheduled, DisabledAndRollbackInProgress, DisabledAndRollbackComplete, DisabledAndRollbackError, Error. |
auto_tune_use_off_peak_window_enum | string | No | Whether Auto-Tune deploys changes during the off-peak window. Values: Enabled, Disabled. |
availability_zone_count | int | No | The number of Availability Zones the domain uses. 1 when zone awareness is disabled. |
cluster_manager_enabled_enum | string | No | Whether dedicated cluster manager nodes are enabled. Values: Enabled, Disabled. |
cluster_manager_instance_count | int | No | The number of dedicated cluster manager nodes. Present only when dedicated cluster manager nodes are enabled. |
cluster_manager_instance_type | string | No | The instance type of the dedicated cluster manager nodes. Present only when dedicated cluster manager nodes are enabled. |
cognito_authentication_enum | string | No | Whether Amazon Cognito authentication for OpenSearch Dashboards is enabled. Values: Enabled, Disabled. |
cold_storage_enum | string | No | Whether cold storage is enabled. Values: Enabled, Disabled. |
coordinator_node_enabled_enum | string | No | Whether coordinator nodes are enabled. Values: Enabled, Disabled. |
coordinator_node_instance_count | int | No | The number of coordinator nodes. |
coordinator_node_instance_type | string | No | The instance type of the coordinator nodes. |
custom_endpoint | string | No | The fully qualified domain name of the custom endpoint. Present only when a custom endpoint is enabled. |
custom_endpoint_certificate_arn | string | No | The ARN of the AWS Certificate Manager certificate for the custom endpoint. Present only when a custom endpoint is enabled. |
custom_endpoint_enabled_enum | string | No | Whether a custom endpoint is enabled for the domain. Values: Enabled, Disabled. |
deployment_strategy_enum | string | No | The deployment strategy that the domain uses for configuration changes. Values: Default, CapacityOptimized. |
domain_id | string | Yes | The unique identifier of the domain, in the form account-id/domain-name. |
ebs_enabled_enum | string | No | Whether EBS volumes are attached to the data nodes. Values: Enabled, Disabled. |
ebs_iops | int | No | The baseline IOPS of each EBS volume. Present only for gp3 and io1 volumes. |
ebs_throughput_in_mebibytes_per_second | int | No | The throughput of each EBS volume, in mebibytes per second. Present only for gp3 volumes. |
ebs_volume_size_in_gibibytes | int | No | The size of each EBS volume, in gibibytes. |
ebs_volume_type | string | No | The EBS volume type, for example gp3. |
encryption_at_rest_enum | string | No | Whether encryption of data at rest is enabled. Values: Enabled, Disabled. |
endpoint | string | No | The public endpoint used to submit index, search, and data upload requests to the domain. Present only for domains with public network access. |
endpoint_v2 | string | No | The dual-stack public endpoint of the domain. Present only for public domains with dual-stack IP addresses. |
enforce_https_enum | string | No | Whether the domain requires that all traffic arrives over HTTPS. Values: Enabled, Disabled. |
engine_enum | string | No | The search engine that the domain runs. Values: OpenSearch, Elasticsearch. |
engine_mode_enum | string | No | The engine mode of the domain. Values: General, Optimized. |
engine_version | string | No | The engine version that the domain runs, in the form OpenSearch_X.Y or Elasticsearch_X.Y. |
fine_grained_access_control_enum | string | No | Whether fine-grained access control is enabled. Values: Enabled, Disabled. |
iam_federation_enum | string | No | Whether IAM identity federation is enabled. Values: Enabled, Disabled. |
identity_center_api_access_enum | string | No | Whether IAM Identity Center API access is enabled. Values: Enabled, Disabled. |
identity_center_application_arn | string | No | The ARN of the IAM Identity Center application integrated with the domain. |
identity_center_instance_arn | string | No | The ARN of the IAM Identity Center instance integrated with the domain. |
index_slow_logs_enabled_enum | string | No | Whether the log type is published. Values: Enabled, Disabled. |
index_slow_logs_log_group_arn | string | No | The ARN of the CloudWatch Logs log group that the logs are published to. |
instance_count | int | No | The number of data nodes. |
instance_type | string | No | The instance type of the data nodes. |
internal_user_database_enum | string | No | Whether the fine-grained access control internal user database is enabled. Values: Enabled, Disabled. |
ip_address_type_enum | string | No | The type of IP addresses that the domain endpoints support. Values: Ipv4, Dualstack. |
jwt_authentication_enum | string | No | Whether JWT authentication is enabled. Values: Enabled, Disabled. |
kms_key_arn | string | No | The ARN of the AWS KMS key used to encrypt data at rest. Present only when encryption at rest is enabled. Deprecated: use kms_key_id. |
multi_az_with_standby_enum | string | No | Whether the domain is deployed across multiple Availability Zones with a standby zone. Values: Enabled, Disabled. |
natural_language_query_generation_enum | string | No | Whether natural language query generation is enabled. Values: Enabled, Disabled. |
network_access_enum | string | No | Whether the domain is reachable from the public internet or only from within a VPC. Values: Public, Vpc. |
node_to_node_encryption_enabled_enum | string | No | Whether node-to-node encryption is enabled. Values: Enabled, Disabled. |
off_peak_window_enabled_enum | string | No | Whether the off-peak window is enabled. Values: Enabled, Disabled. |
off_peak_window_start_hour_utc | int | No | The hour, in UTC, at which the off-peak window starts. |
off_peak_window_start_minute_utc | int | No | The minute, in UTC, at which the off-peak window starts. |
s3_vectors_engine_enum | string | No | Whether the S3 vectors engine is enabled. Values: Enabled, Disabled. |
saml_authentication_enum | string | No | Whether SAML authentication for OpenSearch Dashboards is enabled. Values: Enabled, Disabled. |
search_slow_logs_enabled_enum | string | No | Whether the log type is published. Values: Enabled, Disabled. |
search_slow_logs_log_group_arn | string | No | The ARN of the CloudWatch Logs log group that the logs are published to. |
serverless_vector_acceleration_enum | string | No | Whether serverless vector acceleration is enabled. Values: Enabled, Disabled. |
service_software_version | string | No | The service software version that the domain runs. |
status_enum | string | No | The current lifecycle status of the domain. Values: Creating, Active, Modifying, UpgradingEngineVersion, UpdatingServiceSoftware, Isolated. |
tls_security_policy | string | No | The TLS security policy applied to the HTTPS endpoint of the domain. |
use_case_enum | string | No | The primary use case of the domain. Values: Search, Vector, Observability, Mixed. |
use_latest_service_software_for_blue_green_enum | string | No | Whether blue/green deployments use the latest available service software. Values: Enabled, Disabled. |
vpc_endpoint | string | No | The VPC endpoint used to submit index, search, and data upload requests to the domain. Present only for domains with VPC network access. |
vpc_endpoint_v2 | string | No | The dual-stack VPC endpoint of the domain. Present only for VPC domains with dual-stack IP addresses. |
warm_instance_count | int | No | The number of UltraWarm nodes. Present only when UltraWarm storage is enabled. |
warm_instance_type | string | No | The instance type of the UltraWarm nodes. Present only when UltraWarm storage is enabled. |
warm_storage_enum | string | No | Whether UltraWarm storage is enabled. Values: Enabled, Disabled. |
zone_awareness_enum | string | No | Whether the domain spreads its nodes across multiple Availability Zones. Values: Enabled, Disabled. |
kms_key_id | string | No | The identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN. |
collections
Full name: "s3tablescatalog/aws-catalog"."opensearch"."collections". Partitioned by bucket(32, id).
The collections system table contains one row for each Serverless collection in your account and Region.
The following table describes the columns of the collections table.
| Column | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier of the asset. |
ingestion_time | timestamptz | Yes | Time this asset record was ingested into the system table, in UTC. |
update_time | timestamptz | No | Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
schema_version | string | Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
created_time | timestamptz | No | Time the resource was created, in UTC. |
name | string | No | The user-provided business name for the asset. |
description | string | No | The user-provided business description for the asset. |
resource_name | string | Yes | The resource's technical name. |
resource_description | string | No | The resource's technical description. |
collection_endpoint | string | No | The HTTPS endpoint used to submit search and index requests to the collection. |
collection_group_name | string | No | The name of the collection group that contains this collection. Populated only for collections that belong to a collection group. |
collection_id | string | Yes | The unique identifier of the OpenSearch Serverless collection. |
collection_type_enum | string | No | The collection type, which determines the supported workload and query capabilities. Values: SEARCH, VECTORSEARCH, TIMESERIES. |
deletion_protection_enum | string | No | Whether deletion protection is enabled for the collection. Values: ENABLED, DISABLED. |
fips_collection_endpoint | string | No | The FIPS 140-3 compliant HTTPS endpoint used to submit search and index requests to the collection. Populated only for collections that expose a FIPS endpoint. |
generation_enum | string | No | The generation of the collection. Values: CLASSIC, NEXTGEN. |
kms_key_arn | string | No | The ARN of the AWS KMS key used to encrypt the collection. Deprecated: use kms_key_id. |
serverless_vector_acceleration_enum | string | No | Whether serverless vector acceleration is enabled for the collection. Values: ENABLED, DISABLED, ALLOWED. |
standby_replicas_enum | string | No | Whether the collection is deployed with redundant standby replicas for high availability. Values: ENABLED, DISABLED. |
status_enum | string | No | The current lifecycle status of the collection. Values: CREATING, UPDATING, DELETING, ACTIVE, FAILED, UPDATE_FAILED. |
kms_key_id | string | No | The identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN. |
indexes
Full name: "s3tablescatalog/aws-catalog"."opensearch"."indexes". Partitioned by bucket(32, id).
The indexes system table contains one row for each index in your account and Region.
The following table describes the columns of the indexes table.
| Column | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier of the asset. |
ingestion_time | timestamptz | Yes | Time this asset record was ingested into the system table, in UTC. |
update_time | timestamptz | No | Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
schema_version | string | Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
created_time | timestamptz | No | Time the resource was created, in UTC. |
name | string | No | The user-provided business name for the asset. |
description | string | No | The user-provided business description for the asset. |
resource_name | string | Yes | The resource's technical name. |
resource_description | string | No | The resource's technical description. |
belongs_to | string | No | Fully qualified identifier of the container asset this asset is a member of. |
settings | map<string,string> | No | The complete set of index setting key-value pairs as returned by GET /{index}. Keys use OpenSearch dotted format (for example, index.number_of_shards, index.refresh_interval). |
Example queries
Domains by encryption at rest and audit logging
SELECT encryption_at_rest_enum, audit_logs_enabled_enum, count(*) AS domains FROM "s3tablescatalog/aws-catalog"."opensearch"."domains" GROUP BY 1, 2;
Collections by type and deletion protection
SELECT collection_type_enum, deletion_protection_enum, standby_replicas_enum, count(*) AS collections FROM "s3tablescatalog/aws-catalog"."opensearch"."collections" GROUP BY 1, 2, 3;