community.aws.opensearch_info module – obtain information about one or more OpenSearch or ElasticSearch domain
Note
This module is part of the community.aws collection (version 5.5.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.aws
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.aws.opensearch_info
.
New in community.aws 4.0.0
Synopsis
Obtain information about one Amazon OpenSearch Service domain.
Requirements
The below requirements are needed on the host that executes this module.
boto3 >= 1.18.0
botocore >= 1.21.0
botocore >= 1.21.38
python >= 3.6
Parameters
Parameter |
Comments |
---|---|
AWS access key ID. See the AWS documentation for more information about access tokens https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys. The The aws_access_key and profile options are mutually exclusive. The aws_access_key_id alias was added in release 5.1.0 for consistency with the AWS botocore SDK. The ec2_access_key alias has been deprecated and will be removed in a release after 2024-12-01. Support for the |
|
The location of a CA Bundle to use when validating SSL certificates. The |
|
A dictionary to modify the botocore configuration. Parameters can be found in the AWS documentation https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html#botocore.config.Config. |
|
Use a The Choices:
|
|
The name of the Amazon OpenSearch/ElasticSearch Service domain. |
|
URL to connect to instead of the default AWS endpoints. While this can be used to connection to other AWS-compatible services the amazon.aws and community.aws collections are only tested against AWS. The The ec2_url and s3_url aliases have been deprecated and will be removed in a release after 2024-12-01. Support for the |
|
A named AWS profile to use for authentication. See the AWS documentation for more information about named profiles https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html. The The profile option is mutually exclusive with the aws_access_key, aws_secret_key and security_token options. |
|
The AWS region to use. For global services such as IAM, Route53 and CloudFront, region is ignored. The See the Amazon AWS documentation for more information http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region. The Support for the |
|
AWS secret access key. See the AWS documentation for more information about access tokens https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys. The The secret_key and profile options are mutually exclusive. The aws_secret_access_key alias was added in release 5.1.0 for consistency with the AWS botocore SDK. The ec2_secret_key alias has been deprecated and will be removed in a release after 2024-12-01. Support for the |
|
AWS STS session token for use with temporary credentials. See the AWS documentation for more information about access tokens https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys. The The security_token and profile options are mutually exclusive. Aliases aws_session_token and session_token were added in release 3.2.0, with the parameter being renamed from security_token to session_token in release 6.0.0. The security_token, aws_security_token, and access_token aliases have been deprecated and will be removed in a release after 2024-12-01. Support for the |
|
A dict of tags that are used to filter OpenSearch domains that match all tag key, value pairs. |
|
When set to Setting validate_certs=false is strongly discouraged, as an alternative, consider setting aws_ca_bundle instead. Choices:
|
Notes
Note
Caution: For modules, environment variables and configuration files are read from the Ansible ‘host’ context and not the ‘controller’ context. As such, files may need to be explicitly copied to the ‘host’. For lookup and connection plugins, environment variables and configuration files are read from the Ansible ‘controller’ context and not the ‘host’ context.
The AWS SDK (boto3) that Ansible uses may also read defaults for credentials and other settings, such as the region, from its configuration files in the Ansible ‘host’ context (typically
~/.aws/credentials
). See https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html for more information.
Examples
- name: Get information about an OpenSearch domain instance
community.aws.opensearch_info:
domain-name: my-search-cluster
register: new_cluster_info
- name: Get all OpenSearch instances
community.aws.opensearch_info:
- name: Get all OpenSearch instances that have the specified Key, Value tags
community.aws.opensearch_info:
tags:
Applications: search
Environment: Development
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
List of OpenSearch domain instances Returned: always |
|
The OpenSearch domain configuration Returned: always |
|
The name of the OpenSearch domain. Returned: always |
|
The current status of the OpenSearch domain. Returned: always |
|
IAM access policy as a JSON-formatted string. Returned: success |
|
Specifies advanced security options. Returned: success |
|
True if advanced security is enabled. You must enable node-to-node encryption to use advanced security options. Returned: success |
|
True if the internal user database is enabled. Returned: success |
|
Credentials for the master user, username and password, ARN, or both. Returned: success |
|
ARN for the master user (if IAM is enabled). Returned: success |
|
The username of the master user, which is stored in the Amazon OpenSearch Service domain internal database. Returned: success |
|
The password of the master user, which is stored in the Amazon OpenSearch Service domain internal database. Returned: success |
|
The SAML application configuration for the domain. Returned: success |
|
True if SAML is enabled. Returned: success |
|
The SAML Identity Provider’s information. Returned: success |
|
The unique entity ID of the application in SAML identity provider. Returned: success |
|
The metadata of the SAML application in XML format. Returned: success |
|
The backend role that the SAML master user is mapped to. Returned: success |
|
The SAML master username, which is stored in the Amazon OpenSearch Service domain internal database. Returned: success |
|
Element of the SAML assertion to use for backend roles. Default is roles. Returned: success |
|
The duration, in minutes, after which a user session becomes inactive. Acceptable values are between 1 and 1440, and the default value is 60. Returned: success |
|
Element of the SAML assertion to use for username. Default is NameID. Returned: success |
|
The ARN of the OpenSearch domain. Returned: always |
|
Specifies Auto-Tune options. Returned: success |
|
The Auto-Tune desired state. Valid values are ENABLED and DISABLED. Returned: success |
|
A list of maintenance schedules. Returned: success |
|
A cron expression for a recurring maintenance schedule. Returned: success |
|
Specifies maintenance schedule duration, duration value and duration unit. Returned: success |
|
The unit of a maintenance schedule duration. Valid value is HOURS. Returned: success |
|
Integer to specify the value of a maintenance schedule duration. Returned: success |
|
The timestamp at which the Auto-Tune maintenance schedule starts. Returned: success |
|
Parameters for the cluster configuration of an OpenSearch Service domain. Returned: success |
|
An integer value to indicate the number of availability zones for a domain when zone awareness is enabled. This should be equal to number of subnets if VPC endpoints is enabled. Returned: success |
|
Specifies the ColdStorageOptions config for a Domain. Returned: success |
|
True to enable cold storage. Supported on Elasticsearch 7.9 or above. Returned: success |
|
Total number of dedicated master nodes, active and on standby, for the domain. Returned: success |
|
A boolean value to indicate whether a dedicated master node is enabled. Returned: success |
|
The instance type for a dedicated master node. Returned: success |
|
Number of instances for the domain. Returned: success |
|
Type of the instances to use for the domain. Returned: success |
|
The number of UltraWarm nodes in the domain. Returned: success |
|
True to enable UltraWarm storage. Returned: success |
|
The instance type for the OpenSearch domain’s warm nodes. Returned: success |
|
A boolean value to indicate whether zone awareness is enabled. Returned: success |
|
The zone awareness configuration for a domain when zone awareness is enabled. Returned: success |
|
An integer value to indicate the number of availability zones for a domain when zone awareness is enabled. Returned: success |
|
A boolean value to indicate whether zone awareness is enabled. Returned: success |
|
Parameters to configure OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards. Returned: success |
|
The option to enable Cognito for OpenSearch Dashboards authentication. Returned: success |
|
The Cognito identity pool ID for OpenSearch Dashboards authentication. Returned: success |
|
The role ARN that provides OpenSearch permissions for accessing Cognito resources. Returned: success |
|
The Cognito user pool ID for OpenSearch Dashboards authentication. Returned: success |
|
The domain creation status. True if the creation of a domain is complete. False if domain creation is still in progress. Returned: always |
|
The domain deletion status. True if a delete request has been received for the domain but resource cleanup is still in progress. False if the domain has not been deleted. Once domain deletion is complete, the status of the domain is no longer returned. Returned: always |
|
Options to specify configuration that will be applied to the domain endpoint. Returned: success |
|
The fully qualified domain for your custom endpoint. Returned: success |
|
The ACM certificate ARN for your custom endpoint. Returned: success |
|
Whether to enable a custom endpoint for the domain. Returned: success |
|
Whether only HTTPS endpoint should be enabled for the domain. Returned: success |
|
Specify the TLS security policy to apply to the HTTPS endpoint of the domain. Returned: success |
|
The unique identifier for the OpenSearch domain. Returned: always |
|
The name of the OpenSearch domain. Returned: always |
|
Parameters to configure EBS-based storage for an OpenSearch Service domain. Returned: success |
|
Specifies whether EBS-based storage is enabled. Returned: success |
|
The IOPD for a Provisioned IOPS EBS volume (SSD). Returned: success |
|
Integer to specify the size of an EBS volume. Returned: success |
|
Specifies the volume type for EBS-based storage. “standard”|”gp2”|”io1” Returned: success |
|
Parameters to enable encryption at rest. Returned: success |
|
Should data be encrypted while at rest. Returned: success |
|
If encryption at rest enabled, this identifies the encryption key to use. The value should be a KMS key ARN. It can also be the KMS key id. Returned: success |
|
The domain endpoint that you use to submit index and search requests. Returned: always |
|
Map containing the domain endpoints used to submit index and search requests. When you create a domain attached to a VPC domain, this propery contains the DNS endpoint to which service requests are submitted. If you query the opensearch_info immediately after creating the OpenSearch cluster, the VPC endpoint may not be returned. It may take several minutes until the endpoints is available. Returned: success |
|
The version of the OpenSearch domain. Returned: always Sample: |
|
Node-to-node encryption options. Returned: success |
|
True to enable node-to-node encryption. Returned: success |
|
The status of the domain configuration. True if Amazon OpenSearch Service is processing configuration changes. False if the configuration is active. Returned: always |
|
Option to set time, in UTC format, of the daily automated snapshot. Returned: success |
|
Integer value from 0 to 23 specifying when the service takes a daily automated snapshot of the specified Elasticsearch domain. Returned: success |
|
true if a domain upgrade operation is in progress. Returned: always |
|
Options to specify the subnets and security groups for a VPC endpoint. Returned: success |
|
The Availability Zones for the domain.. Returned: success |
|
Specifies the security group ids for VPC endpoint. Returned: success |
|
Specifies the subnet ids for VPC endpoint. Returned: success |
|
The VPC ID for the domain. Returned: success |