-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployment.tf
62 lines (51 loc) · 1.74 KB
/
deployment.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module "eks_cluster" {
source = "git::https://github.com/SymphonyOSF/ElasticsearchKubernetes.git//Terraform/cluster"
environment_tag = "dev"
region = var.region
cluster_name = ""
public_key = ""
num_subnets = 2
//Data nodes group
num_data_node_groups = 2
data_node_instante_type = "t3.large"
min_num_data_nodes = 1
max_num_data_nodes = 60
desired_num_data_nodes = 1
//Master nodes
master_node_instante_type = "c5.large"
min_num_master_nodes = 1
max_num_master_nodes = 30
desired_num_master_nodes = 1
//Service nodes
service_node_instante_type = "t3.small"
min_num_service_nodes = 1
max_num_service_nodes = 30
desired_num_service_nodes = 1
enable_ssh_access = true
// Dev default VPC and subnets
network = {
vpc_id = "vpc-a2ed6dc7"
subnet_id_list = ["subnet-fb30a39e", "subnet-9b20c0b0", "subnet-d32187a4"]
}
}
###########!! DO NOT REMOVE THIS !!############
terraform {
required_version = ">= 0.12.0"
backend "s3" {
encrypt = true
}
}
# https://www.terraform.io/docs/providers/aws/index.html
provider "aws" {
version = ">= 2.38.0"
region = var.region
}
output "eks_cluster_output" {
value = module.eks_cluster
}
variable "region" {
description = "AWS region to deploy the cluster in"
}
output "REMINDER" {
value = "\n**************************************************\n**************************************************\nREMEMBER TO BOOTSTRAP THE EKS CLUSTER BEFORE YOU START DEPLOYING ELASTICSEARCH CLUSTERS\n**************************************************\n**************************************************\n"
}