community / community.aws / 4.3.0 / module / opensearch_info obtain information about one or more OpenSearch or ElasticSearch domain | "added in version" 4.0.0 of community.aws" Authors: Sebastien Rosset (@sebastien-rosset)community.aws.opensearch_info (4.3.0) — module
Install with ansible-galaxy collection install community.aws:==4.3.0
collections: - name: community.aws version: 4.3.0
Obtain information about one Amazon OpenSearch Service domain.
- 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
tags: description: - 'A dict of tags that are used to filter OpenSearch domains that match all tag key, value pairs. ' required: false type: dict region: aliases: - aws_region - ec2_region description: - The AWS region to use. If not specified then the value of the AWS_REGION or EC2_REGION environment variable, if any, is used. See U(http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region) type: str ec2_url: aliases: - aws_endpoint_url - endpoint_url description: - Url to use to connect to EC2 or your Eucalyptus cloud (by default the module will use EC2 endpoints). Ignored for modules where region is required. Must be specified for all other modules if region is not used. If not set then the value of the EC2_URL environment variable, if any, is used. type: str profile: aliases: - aws_profile description: - Uses a boto profile. Only works with boto >= 2.24.0. - Using I(profile) will override I(aws_access_key), I(aws_secret_key) and I(security_token) and support for passing them at the same time as I(profile) has been deprecated. - I(aws_access_key), I(aws_secret_key) and I(security_token) will be made mutually exclusive with I(profile) after 2022-06-01. type: str aws_config: description: - A dictionary to modify the botocore configuration. - Parameters can be found at U(https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html#botocore.config.Config). - Only the 'user_agent' key is used for boto modules. See U(http://boto.cloudhackers.com/en/latest/boto_config_tut.html#boto) for more boto configuration. type: dict domain_name: description: - The name of the Amazon OpenSearch/ElasticSearch Service domain. required: false type: str aws_ca_bundle: description: - The location of a CA Bundle to use when validating SSL certificates. - Only used for boto3 based modules. - 'Note: The CA Bundle is read ''module'' side and may need to be explicitly copied from the controller if not run locally.' type: path aws_access_key: aliases: - ec2_access_key - access_key description: - AWS access key. If not set then the value of the AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY or EC2_ACCESS_KEY environment variable is used. - If I(profile) is set this parameter is ignored. - Passing the I(aws_access_key) and I(profile) options at the same time has been deprecated and the options will be made mutually exclusive after 2022-06-01. type: str aws_secret_key: aliases: - ec2_secret_key - secret_key description: - AWS secret key. If not set then the value of the AWS_SECRET_ACCESS_KEY, AWS_SECRET_KEY, or EC2_SECRET_KEY environment variable is used. - If I(profile) is set this parameter is ignored. - Passing the I(aws_secret_key) and I(profile) options at the same time has been deprecated and the options will be made mutually exclusive after 2022-06-01. type: str security_token: aliases: - aws_security_token - access_token description: - AWS STS security token. If not set then the value of the AWS_SECURITY_TOKEN or EC2_SECURITY_TOKEN environment variable is used. - If I(profile) is set this parameter is ignored. - Passing the I(security_token) and I(profile) options at the same time has been deprecated and the options will be made mutually exclusive after 2022-06-01. type: str validate_certs: default: true description: - When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0. type: bool debug_botocore_endpoint_logs: default: 'no' description: - Use a botocore.endpoint logger to parse the unique (rather than total) "resource:action" API calls made during a task, outputing the set to the resource_actions key in the task results. Use the aws_resource_action callback to output to total list made during a playbook. The ANSIBLE_DEBUG_BOTOCORE_LOGS environment variable may also be used. type: bool
instances: contains: domain_config: contains: domain_name: description: The name of the OpenSearch domain. returned: always type: str description: The OpenSearch domain configuration returned: always type: complex domain_status: contains: access_policies: description: - IAM access policy as a JSON-formatted string. type: complex advanced_security_options: contains: enabled: description: - True if advanced security is enabled. - You must enable node-to-node encryption to use advanced security options. type: bool internal_user_database_enabled: description: - True if the internal user database is enabled. type: bool master_user_options: contains: master_user_arn: description: - ARN for the master user (if IAM is enabled). type: str master_user_name: description: - The username of the master user, which is stored in the Amazon OpenSearch Service domain internal database. type: str master_user_password: description: - The password of the master user, which is stored in the Amazon OpenSearch Service domain internal database. type: str description: - Credentials for the master user, username and password, ARN, or both. type: complex saml_options: contains: enabled: description: - True if SAML is enabled. type: bool idp: contains: entity_id: description: - The unique entity ID of the application in SAML identity provider. type: str metadata_content: description: - The metadata of the SAML application in XML format. type: str description: - The SAML Identity Provider's information. type: complex master_backend_role: description: - The backend role that the SAML master user is mapped to. type: str master_user_name: description: - The SAML master username, which is stored in the Amazon OpenSearch Service domain internal database. type: str roles_key: description: - Element of the SAML assertion to use for backend roles. Default is roles. type: str session_timeout_minutes: description: - 'The duration, in minutes, after which a user session becomes inactive. Acceptable values are between 1 and 1440, and the default value is 60. ' type: int subject_key: description: - Element of the SAML assertion to use for username. Default is NameID. type: str description: - The SAML application configuration for the domain. type: complex description: - Specifies advanced security options. type: complex arn: description: The ARN of the OpenSearch domain. returned: always type: str auto_tune_options: contains: desired_state: description: - The Auto-Tune desired state. Valid values are ENABLED and DISABLED. type: str maintenance_schedules: contains: cron_expression_for_recurrence: description: - A cron expression for a recurring maintenance schedule. type: str duration: contains: unit: description: - The unit of a maintenance schedule duration. Valid value is HOURS. type: str value: description: - Integer to specify the value of a maintenance schedule duration. type: int description: - Specifies maintenance schedule duration, duration value and duration unit. type: complex start_at: description: - The timestamp at which the Auto-Tune maintenance schedule starts. type: str description: - A list of maintenance schedules. elements: dict type: list description: - Specifies Auto-Tune options. type: complex cluster_config: contains: availability_zone_count: description: - '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. ' type: int cold_storage_options: contains: enabled: description: - True to enable cold storage. Supported on Elasticsearch 7.9 or above. type: bool description: - Specifies the ColdStorageOptions config for a Domain. type: complex dedicated_master_count: description: - Total number of dedicated master nodes, active and on standby, for the domain. type: int dedicated_master_enabled: description: - A boolean value to indicate whether a dedicated master node is enabled. type: bool dedicated_master_type: description: - The instance type for a dedicated master node. type: str instance_count: description: - Number of instances for the domain. type: int instance_type: description: - Type of the instances to use for the domain. type: str warm_count: description: - The number of UltraWarm nodes in the domain. type: int warm_enabled: description: - True to enable UltraWarm storage. type: bool warm_type: description: - The instance type for the OpenSearch domain's warm nodes. type: str zone_awareness: description: - A boolean value to indicate whether zone awareness is enabled. type: bool zone_awareness_config: contains: availability_zone_count: description: - An integer value to indicate the number of availability zones for a domain when zone awareness is enabled. type: int description: - The zone awareness configuration for a domain when zone awareness is enabled. type: complex zone_awareness_enabled: description: - A boolean value to indicate whether zone awareness is enabled. type: bool description: - Parameters for the cluster configuration of an OpenSearch Service domain. type: complex cognito_options: contains: enabled: description: - The option to enable Cognito for OpenSearch Dashboards authentication. type: bool identity_pool_id: description: - The Cognito identity pool ID for OpenSearch Dashboards authentication. type: str role_arn: description: - The role ARN that provides OpenSearch permissions for accessing Cognito resources. type: str user_pool_id: description: - The Cognito user pool ID for OpenSearch Dashboards authentication. type: str description: - Parameters to configure OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards. type: complex created: description: - 'The domain creation status. True if the creation of a domain is complete. False if domain creation is still in progress. ' returned: always type: bool deleted: description: - '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 type: bool domain_endpoint_options: contains: custom_endpoint: description: - The fully qualified domain for your custom endpoint. type: str custom_endpoint_certificate_arn: description: - The ACM certificate ARN for your custom endpoint. type: str custom_endpoint_enabled: description: - Whether to enable a custom endpoint for the domain. type: bool enforce_https: description: - Whether only HTTPS endpoint should be enabled for the domain. type: bool tls_security_policy: description: - Specify the TLS security policy to apply to the HTTPS endpoint of the domain. type: str description: - Options to specify configuration that will be applied to the domain endpoint. type: complex domain_id: description: The unique identifier for the OpenSearch domain. returned: always type: str domain_name: description: The name of the OpenSearch domain. returned: always type: str ebs_options: contains: ebs_enabled: description: - Specifies whether EBS-based storage is enabled. type: bool iops: description: - The IOPD for a Provisioned IOPS EBS volume (SSD). type: int volume_size: description: - Integer to specify the size of an EBS volume. type: int volume_type: description: - Specifies the volume type for EBS-based storage. "standard"|"gp2"|"io1" type: str description: - Parameters to configure EBS-based storage for an OpenSearch Service domain. type: complex encryption_at_rest_options: contains: enabled: description: - Should data be encrypted while at rest. type: bool kms_key_id: description: - 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. type: str description: - Parameters to enable encryption at rest. type: complex endpoint: description: The domain endpoint that you use to submit index and search requests. returned: always type: str endpoints: description: - '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. ' type: dict engine_version: description: The version of the OpenSearch domain. returned: always sample: OpenSearch_1.1 type: str node_to_node_encryption_options: contains: enabled: description: - True to enable node-to-node encryption. type: bool description: - Node-to-node encryption options. type: complex processing: description: - 'The status of the domain configuration. True if Amazon OpenSearch Service is processing configuration changes. False if the configuration is active. ' returned: always type: bool snapshot_options: contains: automated_snapshot_start_hour: description: - 'Integer value from 0 to 23 specifying when the service takes a daily automated snapshot of the specified Elasticsearch domain. ' type: int description: - Option to set time, in UTC format, of the daily automated snapshot. type: complex upgrade_processing: description: true if a domain upgrade operation is in progress. returned: always type: bool vpc_options: contains: availability_zones: description: - The Availability Zones for the domain.. elements: str type: list security_group_ids: description: - Specifies the security group ids for VPC endpoint. elements: str type: list subnet_ids: description: - Specifies the subnet ids for VPC endpoint. elements: str type: list vpc_id: description: The VPC ID for the domain. type: str description: - Options to specify the subnets and security groups for a VPC endpoint. type: complex description: The current status of the OpenSearch domain. returned: always type: complex description: List of OpenSearch domain instances returned: always type: complex