← 返回命令列表

Linux command

aws-opensearch 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all OpenSearch domains

aws opensearch list-domain-names

Describe a domain

aws opensearch describe-domain --domain-name [domain_name]

Get domain configuration

aws opensearch describe-domain-config --domain-name [domain_name]

Create a new domain

aws opensearch create-domain --domain-name [domain_name] --engine-version OpenSearch_2.11 --cluster-config InstanceType=t3.small.search,InstanceCount=1

Update domain configuration

aws opensearch update-domain-config --domain-name [domain_name] --cluster-config InstanceType=r6g.large.search

Delete a domain

aws opensearch delete-domain --domain-name [domain_name]

List available engine versions

aws opensearch list-versions

Get upgrade history

aws opensearch get-upgrade-history --domain-name [domain_name]

说明

aws opensearch is a subcommand of the AWS CLI that manages Amazon OpenSearch Service, a managed search and analytics engine. It is the successor to Amazon Elasticsearch Service and is compatible with OpenSearch and legacy Elasticsearch APIs. OpenSearch domains are clusters that run the OpenSearch engine. Each domain has a cluster configuration (instance types, counts), storage settings (EBS volumes), access policies, and optional features like fine-grained access control and encryption. The service supports use cases including log analytics, full-text search, application monitoring, and SIEM. OpenSearch Dashboards provides visualization capabilities.

参数

list-domain-names
List all domains in the account.
describe-domain
Get domain status and configuration.
describe-domain-config
Get detailed configuration settings.
create-domain
Create a new OpenSearch domain.
update-domain-config
Modify domain settings.
delete-domain
Remove a domain.
list-versions
List available OpenSearch and Elasticsearch versions.
upgrade-domain
Initiate a version upgrade.
get-upgrade-status
Check upgrade progress.
--domain-name _name_
Name of the domain.
--engine-version _version_
OpenSearch or Elasticsearch version.
--cluster-config _config_
Instance type, count, and zone awareness.
--ebs-options _options_
EBS volume configuration.
--access-policies _json_
Resource-based access policy.
--vpc-options _options_
VPC configuration for private domains.
--encryption-at-rest-options _options_
Enable encryption at rest.

FAQ

What is the aws-opensearch command used for?

aws opensearch is a subcommand of the AWS CLI that manages Amazon OpenSearch Service, a managed search and analytics engine. It is the successor to Amazon Elasticsearch Service and is compatible with OpenSearch and legacy Elasticsearch APIs. OpenSearch domains are clusters that run the OpenSearch engine. Each domain has a cluster configuration (instance types, counts), storage settings (EBS volumes), access policies, and optional features like fine-grained access control and encryption. The service supports use cases including log analytics, full-text search, application monitoring, and SIEM. OpenSearch Dashboards provides visualization capabilities.

How do I run a basic aws-opensearch example?

Run `aws opensearch list-domain-names` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list-domain-names do in aws-opensearch?

List all domains in the account.