forked from rajdeut/terraform-aws-nightscout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
44 lines (38 loc) · 977 Bytes
/
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
variable "port" {
default = 80
description = "Port to run webserver on"
}
variable "display_units" {
description = "mg/dl or mmol/L"
default = "mmol"
validation {
condition = anytrue([
var.display_units == "mmol",
var.display_units == "mgl"
])
error_message = "Must be a valid display units value. Either 'mg/dl' or 'mmol/L'."
}
}
variable "ec2_ssh_public_key_path" {
description = "Public key to install on EC2"
default = "config/nightscout-ec2-key.pub"
}
variable "my_ip" {
description = "Your IP address to access the EC2 via SSH"
default = null
}
variable "git_repo" {
description = "The name of your Nightscout repository on GitHub, eg 'cgm-remote-monitor'"
default = "cgm-remote-monitor"
}
variable "git_owner" {
description = "Your GitHub username"
}
variable "tags" {
type = map(string)
default = {
env = "prod"
app = "nightscout"
}
description = "tags for all the resources, if any"
}