-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathvariable.tf
53 lines (45 loc) · 1.82 KB
/
variable.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
##__ ___ ____ ___ _ ____ _ _____
##\ \ / / \ | _ \|_ _| / \ | __ )| | | ____|
###\ \ / / _ \ | |_) || | / _ \ | _ \| | | _|
####\ V / ___ \| _ < | | / ___ \| |_) | |___| |___
#####\_/_/ \_\_| \_\___/_/ \_\____/|_____|_____|
variable "region" {
default = "us-east-1"
description = "Region"
}
variable "vpc" {
type = "map"
default = {
main = "10.0.0.0/16"
subnet-1a-prv = "10.0.32.0/20"
subnet-1c-prv = "10.0.96.0/20"
}
}
variable "env" {
default = "live"
}
variable "external-ip" {
default = "5.194.139.128/32"
}
variable "nodes_defaults" {
description = "Default values for target groups as defined by the list of maps."
type = "map"
default = {
name = "eks-nodes" # Name for the eks workers.
ami_id = "ami-dea4d5a1" # AMI ID for the eks workers. If none is provided, Terraform will searchfor the latest version of their EKS optimized worker AMI.
asg_desired_capacity = "2" # Desired worker capacity in the autoscaling group.
asg_max_size = "3" # Maximum worker capacity in the autoscaling group.
asg_min_size = "2" # Minimum worker capacity in the autoscaling group.
instance_type = "t2.small" # Size of the workers instances.
key_name = "eks-key" # The key name that should be used for the instances in the autoscaling group
ebs_optimized = false # sets whether to use ebs optimization on supported types.
public_ip = false # Associate a public ip address with a worker
}
}
variable "cluster_defaults" {
description = "Default values for target groups as defined by the list of maps."
type = "map"
default = {
name = "eks-cluster" # Name for the eks cluster.
}
}