-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
105 lines (89 loc) · 2.06 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
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
variable "tags" {
description = "Tags to set on resources."
type = map(string)
default = {
owner : "User"
testing : "True"
okToRemove : "True"
useCase : "DevStack"
}
}
variable "aws_credentials" {
type = map(string)
default = {
"access_key" = ""
"secret_key" = ""
"account" = ""
}
}
variable "dockerServerCert" {
type = map(string)
default = {
"tlscacert" = "~/.docker/ca.pem"
"tlscert" = "~/.docker/server-cert.pem"
"tlskey" = "~/.docker/server-key.pem"
}
}
variable "ssh-public-key-local-path" {
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "trusted-external-ips" {
description = "These IPs will have acces to the exposed ports"
type = set(string)
default = ["1.2.3.4/32"]
}
variable "ec2-username" {
type = string
default = "ubuntu"
}
variable "ec2-instance-type" {
type = string
default = "t4g.xlarge" //t4g.xlarge (ARM)
//default = "t3.xlarge" //"t3.xlarge" (x64)
}
variable "ingress_rules_from_trusted" {
description = "This will expose the coresponding ports to the internet, but limited to trusted-external-ips"
type = list(object({
port = number
protocol = string
description = string
}))
default = [
{
port = 22
protocol = "tcp"
description = "ssh access"
},
{
port = 80
protocol = "tcp"
description = "HTTP port 80"
},
{
port = 8080
protocol = "tcp"
description = "HTTP port 8080"
},
{
port = 8082
protocol = "tcp"
description = "HTTP port 8082"
},
{
port = 2376
protocol = "tcp"
description = "Docker port"
},
{
port = 7990
protocol = "tcp"
description = "Bitbucket port"
},
{
port = 7992
protocol = "tcp"
description = "Bitbucket second instance port"
}
]
}