Skip to content

Sebor/terraform-yc-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch

Requirements

Name Version
terraform >= 1.2.0
yandex >= 0.75

Providers

Name Version
yandex >= 0.75

Modules

No modules.

Resources

Name Type
yandex_dns_recordset.data_hosts resource
yandex_dns_recordset.master_hosts resource
yandex_mdb_elasticsearch_cluster.this resource

Inputs

Name Description Type Default Required
cluster_admin_password Elasticsearch cluster admin password string n/a yes
cluster_assign_public_ip Determines whether each node will be assigned a public IP address. The default is false bool false no
cluster_deletion_protection Inhibits deletion of the cluster bool null no
cluster_description A description of the Elasticsearch cluster string "Elasticsearch cluster managed by terraform" no
cluster_edition Edition of Elasticsearch string "basic" no
cluster_elasticsearch_cname Internal CNAME for Elasticsearch hosts string null no
cluster_environment Deployment environment of the Elasticsearch cluster.
Can be either PRESTABLE or PRODUCTION. The default is PRODUCTION
string "PRODUCTION" no
cluster_folder_id The ID of the folder that the Elasticsearch cluster belongs to string null no
cluster_maintenance_window Maintenance policy of the Elasticsearch cluster
Example:
cluster_maintenance_window = {
type = "WEEKLY"
day = "MON
hour = 17
}
map(any) null no
cluster_name Elasticsearch cluster name and name prefix for cluster resources string n/a yes
cluster_plugins A set of Elasticsearch plugins to install set(string) null no
cluster_security_group_ids List of security group IDs to be assigned to cluster list(string) [] no
cluster_service_account_id ID of the service account authorized for this cluster string null no
cluster_version Version of the Elasticsearch cluster string null no
cluster_vpc_id ID of the network, to which the Elasticsearch cluster belongs string n/a yes
data_hosts A list of DATA hosts.
Example:
data_hosts = [
{
name = "dnode1"
zone = "ru-central1-a"
subnet_id = "dfsdfdfsfsd343434"
},
{
name = "dnode2"
zone = "ru-central1-b"
subnet_id = "1fs567hfsd343434"
}
]
any n/a yes
data_node_resources Resources allocated to hosts of the Elasticsearch data nodes subcluster
object({
resource_preset_id = string
disk_type_id = string
disk_size = number
})
n/a yes
internal_dns_zone_id Internal DNS zone ID for Elasticsearch hosts string null no
internal_dns_zone_name Internal DNS zone name for Elasticsearch hosts string null no
labels A set of key/value label pairs to assign to the Kubernetes cluster resources map(any) {} no
master_hosts A list of MASTER hosts.
Example:
master_hosts = [
{
name = "mnode1"
zone = "ru-central1-a"
subnet_id = "dfsdfdfsfsd343434"
},
{
name = "mnode2"
zone = "ru-central1-b"
subnet_id = "1fs567hfsd343434"
}
]
any [] no
master_node_resources Resources allocated to hosts of the Elasticsearch master nodes subcluster
object({
resource_preset_id = string
disk_type_id = string
disk_size = number
})
{
"disk_size": 10,
"disk_type_id": "network-ssd",
"resource_preset_id": "s2.micro"
}
no

Outputs

Name Description
cluster_cname_data_hosts A list of Elasticsearch CNAME DATA hosts
cluster_cname_master_hosts A list of Elasticsearch CNAME MASTER hosts
cluster_data_hosts A list of Elasticsearch DATA hosts
cluster_id Elasticsearch cluster ID
cluster_master_hosts A list of Elasticsearch MASTER hosts
cluster_name Elasticsearch cluster name
cluster_service_account_id Elasticsearch cluster service account ID

About

Terraform module to manage Elasticsearch cluster

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages