Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2 KB

elasticsearch_security_user.md

File metadata and controls

58 lines (42 loc) · 2 KB
subcategory layout page_title description
Security
Elasticstack: elasticstack_elasticsearch_security_user Data Source
Gets information about Elasticsearch user.

Data Source: elasticstack_elasticsearch_security_user

Use this data source to get information about existing Elasticsearch user. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html".

Example Usage

provider "elasticstack" {
  elasticsearch {}
}

data "elasticstack_elasticsearch_security_user" "user" {
  username = "elastic"
}

output "user" {
  value = data.elasticstack_elasticsearch_security_user.user
}

Schema

Required

  • username (String) An identifier for the user

Optional

  • elasticsearch_connection (Block List, Max: 1) Used to establish connection to Elasticsearch server. Overrides environment variables if present. (see below for nested schema)
  • id (String) The ID of this resource.

Read-Only

  • email (String) The email of the user.
  • enabled (Boolean) Specifies whether the user is enabled. The default value is true.
  • full_name (String) The full name of the user.
  • metadata (String) Arbitrary metadata that you want to associate with the user.
  • roles (Set of String) A set of roles the user has. The roles determine the user’s access permissions. Default is [].

Nested Schema for elasticsearch_connection

Optional:

  • ca_file (String) Path to a custom Certificate Authority certificate
  • endpoints (List of String, Sensitive) A list of endpoints the Terraform provider will point to. They must include the http(s) schema and port number.
  • insecure (Boolean) Disable TLS certificate validation
  • password (String, Sensitive) A password to use for API authentication to Elasticsearch.
  • username (String) A username to use for API authentication to Elasticsearch.