forked from pkolyvas/nightscout-as-code-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
88 lines (77 loc) · 2.91 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
variable "my_nightscout_domain" {
type = string
description = "(Required) The AWS-managed domain name used for your Nightscout instance"
}
variable "nightscout_api_key" {
type = string
sensitive = true
description = "(Required) Please set an API key, aka password, to access your Nightscout instance. Please strongly consider making this hard to guess, but easy to remember. https://xkcd.com/936/"
}
variable "nightscout_features" {
type = string
description = "(Required) A space-separated list of features you'd like to enable in Nightscout. Defaults are normally \"careportal rawbg iob\". Please refer to the Nightscout documentation if you're unsure: https://nightscout.github.io/nightscout/setup_variables/#features"
}
variable "aws_access_key" {
type = string
sensitive = true
description = "Your AWS access key ID."
}
variable "aws_secret_key" {
type = string
sensitive = true
description = "Your AWS secret access key."
}
#####
# Additional configuration option variables
####
variable "nightscout_image" {
type = string
default = "nightscout/cgm-remote-monitor"
description = "The Docker image used for Nightscout. Offers the opportunity to customize which image is being run. Defaults to the official Nightscout image."
}
variable "nightscout_image_tag" {
type = string
default = "latest"
description = "The tag used to specify which image version of nightscout is being run. Defaults to latest."
}
variable "mongo_image" {
type = string
default = "mongo"
description = "The Docker image used for Mongo. Offers the opportunity to customize which mongo docker image is being run. Defaults to the offical mongo docker image."
}
variable "mongo_image_tag" {
type = string
default = "4.4"
description = "The tag used to specify which image version of mongo is being run. Defaults to 4.4."
}
# Choose a region for your deployment
# The Default Region is for the East Coast of the US
#
# Other options:
# Asia Pacific = "ap-south-1"
# Canada = "ca-central-1"
# Europe = "eu-central-1"
# US West = "us-west-2"
#
# Please note costs will differ depending on the regions you choose and these configurations
# have not been tested outside of North American regions.
variable "aws_region" {
type = string
default = "us-east-2"
description = "The AWS region where you would like to run your Nightscout to run."
}
variable "storage" {
type = number
default = 8
description = "The amount of storage for your Nightscout data, in GB."
}
variable "alternative_ami" {
type = string
default = ""
description = "Specifiy an alternative ami for custom requirements. Defaults to Ubuntu 22.04 LTS for AMD64. Should be a debian-based distro."
}
variable "aws_ec2_instance_type" {
type = string
default = "t3.nano"
description = "Specify an ec2 instance type. Defaults to t3.nano."
}