elasticstack.ElasticsearchSecuritySystemUser
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const kibanaSystem = new elasticstack.ElasticsearchSecuritySystemUser("kibanaSystem", {
elasticsearchConnection: {
endpoints: ["http://localhost:9200"],
password: "changeme",
username: "elastic",
},
passwordHash: "$2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO",
username: "kibana_system",
});
import pulumi
import pulumi_elasticstack as elasticstack
kibana_system = elasticstack.ElasticsearchSecuritySystemUser("kibanaSystem",
elasticsearch_connection={
"endpoints": ["http://localhost:9200"],
"password": "changeme",
"username": "elastic",
},
password_hash="$2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO",
username="kibana_system")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticstack.NewElasticsearchSecuritySystemUser(ctx, "kibanaSystem", &elasticstack.ElasticsearchSecuritySystemUserArgs{
ElasticsearchConnection: &elasticstack.ElasticsearchSecuritySystemUserElasticsearchConnectionArgs{
Endpoints: pulumi.StringArray{
pulumi.String("http://localhost:9200"),
},
Password: pulumi.String("changeme"),
Username: pulumi.String("elastic"),
},
PasswordHash: pulumi.String("$2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO"),
Username: pulumi.String("kibana_system"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var kibanaSystem = new Elasticstack.ElasticsearchSecuritySystemUser("kibanaSystem", new()
{
ElasticsearchConnection = new Elasticstack.Inputs.ElasticsearchSecuritySystemUserElasticsearchConnectionArgs
{
Endpoints = new[]
{
"http://localhost:9200",
},
Password = "changeme",
Username = "elastic",
},
PasswordHash = "$2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO",
Username = "kibana_system",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticsearchSecuritySystemUser;
import com.pulumi.elasticstack.ElasticsearchSecuritySystemUserArgs;
import com.pulumi.elasticstack.inputs.ElasticsearchSecuritySystemUserElasticsearchConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var kibanaSystem = new ElasticsearchSecuritySystemUser("kibanaSystem", ElasticsearchSecuritySystemUserArgs.builder()
.elasticsearchConnection(ElasticsearchSecuritySystemUserElasticsearchConnectionArgs.builder()
.endpoints("http://localhost:9200")
.password("changeme")
.username("elastic")
.build())
.passwordHash("$2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO")
.username("kibana_system")
.build());
}
}
resources:
kibanaSystem:
type: elasticstack:ElasticsearchSecuritySystemUser
properties:
elasticsearchConnection:
endpoints:
- http://localhost:9200
password: changeme
username: elastic
# For details on how to generate the hashed password see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html#security-api-put-user-request-body
passwordHash: $2a$10$rMZe6TdsUwBX/TA8vRDz0OLwKAZeCzXM4jT3tfCjpSTB8HoFuq8xO
username: kibana_system
Create ElasticsearchSecuritySystemUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchSecuritySystemUser(name: string, args: ElasticsearchSecuritySystemUserArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchSecuritySystemUser(resource_name: str,
args: ElasticsearchSecuritySystemUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchSecuritySystemUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
username: Optional[str] = None,
elasticsearch_connection: Optional[ElasticsearchSecuritySystemUserElasticsearchConnectionArgs] = None,
enabled: Optional[bool] = None,
password: Optional[str] = None,
password_hash: Optional[str] = None)
func NewElasticsearchSecuritySystemUser(ctx *Context, name string, args ElasticsearchSecuritySystemUserArgs, opts ...ResourceOption) (*ElasticsearchSecuritySystemUser, error)
public ElasticsearchSecuritySystemUser(string name, ElasticsearchSecuritySystemUserArgs args, CustomResourceOptions? opts = null)
public ElasticsearchSecuritySystemUser(String name, ElasticsearchSecuritySystemUserArgs args)
public ElasticsearchSecuritySystemUser(String name, ElasticsearchSecuritySystemUserArgs args, CustomResourceOptions options)
type: elasticstack:ElasticsearchSecuritySystemUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElasticsearchSecuritySystemUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElasticsearchSecuritySystemUserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticsearchSecuritySystemUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchSecuritySystemUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchSecuritySystemUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var elasticsearchSecuritySystemUserResource = new Elasticstack.ElasticsearchSecuritySystemUser("elasticsearchSecuritySystemUserResource", new()
{
Username = "string",
Enabled = false,
Password = "string",
PasswordHash = "string",
});
example, err := elasticstack.NewElasticsearchSecuritySystemUser(ctx, "elasticsearchSecuritySystemUserResource", &elasticstack.ElasticsearchSecuritySystemUserArgs{
Username: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Password: pulumi.String("string"),
PasswordHash: pulumi.String("string"),
})
var elasticsearchSecuritySystemUserResource = new ElasticsearchSecuritySystemUser("elasticsearchSecuritySystemUserResource", ElasticsearchSecuritySystemUserArgs.builder()
.username("string")
.enabled(false)
.password("string")
.passwordHash("string")
.build());
elasticsearch_security_system_user_resource = elasticstack.ElasticsearchSecuritySystemUser("elasticsearchSecuritySystemUserResource",
username="string",
enabled=False,
password="string",
password_hash="string")
const elasticsearchSecuritySystemUserResource = new elasticstack.ElasticsearchSecuritySystemUser("elasticsearchSecuritySystemUserResource", {
username: "string",
enabled: false,
password: "string",
passwordHash: "string",
});
type: elasticstack:ElasticsearchSecuritySystemUser
properties:
enabled: false
password: string
passwordHash: string
username: string
ElasticsearchSecuritySystemUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ElasticsearchSecuritySystemUser resource accepts the following input properties:
- Username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- Elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- Enabled bool
- Specifies whether the user is enabled. The default value is true.
- Password string
- The user’s password. Passwords must be at least 6 characters long.
- Password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- Username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- Elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection Args - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- Enabled bool
- Specifies whether the user is enabled. The default value is true.
- Password string
- The user’s password. Passwords must be at least 6 characters long.
- Password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username String
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled Boolean
- Specifies whether the user is enabled. The default value is true.
- password String
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash String - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled boolean
- Specifies whether the user is enabled. The default value is true.
- password string
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username str
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch_
connection ElasticsearchSecurity System User Elasticsearch Connection Args - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled bool
- Specifies whether the user is enabled. The default value is true.
- password str
- The user’s password. Passwords must be at least 6 characters long.
- password_
hash str - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username String
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection Property Map - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled Boolean
- Specifies whether the user is enabled. The default value is true.
- password String
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash String - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchSecuritySystemUser resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ElasticsearchSecuritySystemUser Resource
Get an existing ElasticsearchSecuritySystemUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElasticsearchSecuritySystemUserState, opts?: CustomResourceOptions): ElasticsearchSecuritySystemUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
elasticsearch_connection: Optional[ElasticsearchSecuritySystemUserElasticsearchConnectionArgs] = None,
enabled: Optional[bool] = None,
password: Optional[str] = None,
password_hash: Optional[str] = None,
username: Optional[str] = None) -> ElasticsearchSecuritySystemUser
func GetElasticsearchSecuritySystemUser(ctx *Context, name string, id IDInput, state *ElasticsearchSecuritySystemUserState, opts ...ResourceOption) (*ElasticsearchSecuritySystemUser, error)
public static ElasticsearchSecuritySystemUser Get(string name, Input<string> id, ElasticsearchSecuritySystemUserState? state, CustomResourceOptions? opts = null)
public static ElasticsearchSecuritySystemUser get(String name, Output<String> id, ElasticsearchSecuritySystemUserState state, CustomResourceOptions options)
resources: _: type: elasticstack:ElasticsearchSecuritySystemUser get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- Enabled bool
- Specifies whether the user is enabled. The default value is true.
- Password string
- The user’s password. Passwords must be at least 6 characters long.
- Password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- Username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- Elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection Args - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- Enabled bool
- Specifies whether the user is enabled. The default value is true.
- Password string
- The user’s password. Passwords must be at least 6 characters long.
- Password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- Username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled Boolean
- Specifies whether the user is enabled. The default value is true.
- password String
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash String - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username String
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection ElasticsearchSecurity System User Elasticsearch Connection - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled boolean
- Specifies whether the user is enabled. The default value is true.
- password string
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash string - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username string
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch_
connection ElasticsearchSecurity System User Elasticsearch Connection Args - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled bool
- Specifies whether the user is enabled. The default value is true.
- password str
- The user’s password. Passwords must be at least 6 characters long.
- password_
hash str - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username str
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
- elasticsearch
Connection Property Map - Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead.
- enabled Boolean
- Specifies whether the user is enabled. The default value is true.
- password String
- The user’s password. Passwords must be at least 6 characters long.
- password
Hash String - A hash of the user’s password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
- username String
- An identifier for the system user (see https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html).
Supporting Types
ElasticsearchSecuritySystemUserElasticsearchConnection, ElasticsearchSecuritySystemUserElasticsearchConnectionArgs
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints List<string>
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints []string
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
- api
Key string - API Key to use for authentication to Elasticsearch
- bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- ca
Data string - PEM-encoded custom Certificate Authority certificate
- ca
File string - Path to a custom Certificate Authority certificate
- cert
Data string - PEM encoded certificate for client auth
- cert
File string - Path to a file containing the PEM encoded certificate for client auth
- endpoints string[]
- es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure boolean
- Disable TLS certificate validation
- key
Data string - PEM encoded private key for client auth
- key
File string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api_
key str - API Key to use for authentication to Elasticsearch
- bearer_
token str - Bearer Token to use for authentication to Elasticsearch
- ca_
data str - PEM-encoded custom Certificate Authority certificate
- ca_
file str - Path to a custom Certificate Authority certificate
- cert_
data str - PEM encoded certificate for client auth
- cert_
file str - Path to a file containing the PEM encoded certificate for client auth
- endpoints Sequence[str]
- es_
client_ strauthentication - ES Client Authentication field to be used with the JWT token
- insecure bool
- Disable TLS certificate validation
- key_
data str - PEM encoded private key for client auth
- key_
file str - Path to a file containing the PEM encoded private key for client auth
- password str
- Password to use for API authentication to Elasticsearch.
- username str
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstack
Terraform Provider.