Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 0664801e authored by Nicolas's avatar Nicolas
Browse files

Add Elastic Cluster Directive

parent 500c5f5e
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,36 @@ terraform {
provider "ec" {
apikey = var.ec_apikey
}
\ No newline at end of file
}
data "ec_stack" "stack" {
version_regex = "7.15.2"
region = var.region
}
resource "ec_deployment" "elasticsearch_cluster" {
name = "mon-cluster"
region = data.ec_stack.stack.region
version = data.ec_stack.stack.version_regex
deployment_template_id = "gcp-storage-optimized"
elasticsearch {
autoscale = "false"
topology {
id = "hot_content"
size_resource = "memory"
size = "1g"
zone_count = 1
}
}
kibana {
topology {
size_resource = "memory"
size = "1g"
zone_count = 1
}
}
}
variable "ec_apikey" {
type = string
}
\ No newline at end of file
}
variable "region" {
type = string
default = "gcp-europe-west1"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment