-
Notifications
You must be signed in to change notification settings - Fork 0
/
var.tf
130 lines (105 loc) · 3.43 KB
/
var.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
##__ ___ ____ ___ _ ____ _ _____
##\ \ / / \ | _ \|_ _| / \ | __ )| | | ____|
###\ \ / / _ \ | |_) || | / _ \ | _ \| | | _|
####\ V / ___ \| _ < | | / ___ \| |_) | |___| |___
#####\_/_/ \_\_| \_\___/_/ \_\____/|_____|_____|
variable "region" {
default = "us-west-2"
description = "Region"
}
# Earnest Dev ENV Region
# variable "aws_region" {
# default = "us-east-1"
# }
variable "vpc" {
type = "map"
default = {
main = "10.100.0.0/16"
eks-private-subnet-2a = "10.100.20.0/24"
eks-private-subnet-2b = "10.100.21.0/24"
eks-private-subnet-2c = "10.100.22.0/24"
eks-public-subnet-2a = "10.100.10.0/24"
eks-public-subnet-2b = "10.100.11.0/24"
eks-public-subnet-2c = "10.100.12.0/24"
}
}
# Earnest Dev ENV Account #
variable "aws_account_id" {
# # default = "747722821363" # Earnest Dev ENV
default = "511491726667"
}
# # Earnest Dev ENV Profile
# variable "aws_profile" {
# default = "e-development-Operations"
# }
variable "env" {
default = "e-development"
}
variable "earnest-eks-vpc" {
type = "map"
default = {
main = "10.100.0.0/16"
eks-private-subnet-1a = "10.100.20.0/24"
eks-private-subnet-1b = "10.100.21.0/24"
eks-private-subnet-1c = "10.100.22.0/24"
eks-public-subnet-1a = "10.100.10.0/24"
eks-public-subnet-1b = "10.100.11.0/24"
eks-public-subnet-1c = "10.100.12.0/24"
}
}
variable "external-ip" {
default = "5.194.139.128/32"
}
variable "earnest-eks-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-ba602bc2" # AMI "ami-dea4d5a1" 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 "earnest-eks-cluster-defaults" {
description = "Default values for target groups as defined by the list of maps."
type = "map"
default = {
name = "eks-earnest-cluster" # Name for the eks cluster.
}
}
variable "earnest-eks-cluster-name" {
default = "earnest-eks"
type = "string"
}
variable "amis" {
type = "map"
default = {
us-west-2 = "ami-ba602bc2" #Distro 16:04 LTS instance. Type: hvm:ebs-ssd US-WEST-1
}
}
variable "path_to_priv_key" {
default = "eks-key"
}
variable "path_to_pub_key" {
default = "eks-key.pub"
}
# Cloudtrail default variables
variable "trail_name" {
default = "earnest-eks-cloud-trail"
type = "string"
}
variable "s3_bucket_name" {
default = "earnest-eks-cloudtrail-bucket"
type = "string"
}
variable "is_multi_region_trail" {
default = false
}
variable "include_global_service_events" {
default = false
}