-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.tf
61 lines (61 loc) · 2.37 KB
/
variables.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
variable "cluster_name" {
description = "The name to use to create the cluster and the resources. Only alphanumeric characters and dash allowed (e.g. 'my-cluster')"
}
variable "aws_region" {
default = "us-east-1"
description = "The AWS region where to launch the cluster and releated resources"
}
variable "ssh_key_name" {
description = "SSH key to use to enter and manage the EC2 instances within the cluster. Optional"
default = ""
}
variable "instance_type_spot" {
default = "t3a.medium"
}
variable "instance_type_ondemand" {
default = "t3a.micro"
}
variable "spot_bid_price" {
default = "0.0113"
}
variable "min_spot_instances" {
default = "1"
description = "The minimum EC2 spot instances to have available within the cluster when the cluster receives less traffic"
}
variable "max_spot_instances" {
default = "5"
description = "The maximum EC2 spot instances that can be launched during period of high traffic"
}
variable "min_ondemand_instances" {
default = "0"
description = "The minimum EC2 ondemand instances to have available within the cluster when the cluster receives less traffic"
}
variable "max_ondmand_instances" {
default = "3"
description = "The maximum EC2 ondemand instances that can be launched during period of high traffic"
}
variable "vpc_id" {
default = "invalid-vpc"
type = string
description = "A VPC where the EC2 instances will be launched in. Either pass this variable or \"create_vpc=true\""
}
variable "subnet_ids" {
description = "A list of subnet IDs in which to launch EC2 instances in"
type = list(string)
default = [
"non-existing-1",
"non-existing-2"
]
}
variable "create_iam_service_linked_role" {
default = "false"
description = "Whether or not to create a service-linked role for ECS inside your AWS account. Such role is automatically created the first time you provision an ECS cluster using the AWS UI, CLI, Terraform, etc. If you previously created an ECS cluster, set this to false, else set it to true"
}
variable "create_vpc" {
description = "Whether or not to create a VPC to contain this cluster and its resources, or reuse an existing VPC (passed to the module as a vpc_id parameter)"
}
variable "create_service_discovery_namespace" {
description = "Whether or not to create a Route53 private zone for this cluster"
default = false
type = bool
}