-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
66 lines (61 loc) · 2.18 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
#-------------------------------------------------------------------------------
# Infrastructure configuration
#-------------------------------------------------------------------------------
variable "aws_profile" {
description = "Profile for AWS access"
default = "default"
}
variable "aws_region" {
description = "Region for AWS resources"
default = "us-east-1"
}
variable "aws_availability_zone" {
description = "Availability zone for AWS resources"
# Note: instance type t4g.nano is supported in us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1f.
default = "us-east-1a"
}
variable "aws_resource_name" {
description = "Name of AWS resources"
default = "email-oauth2-proxy"
}
variable "instance_type" {
description = "Type of EC2 instance"
default = "t4g.nano"
}
variable "volume_size" {
description = "Space in GB on EC2 instance root volume"
default = "2"
}
variable "ssh_public_key" {
description = "Public key with SSH access to the EC2 instance"
}
variable "smtp_allow_list" {
description = "List of IPs allowed to access SMTP server"
}
#-------------------------------------------------------------------------------
# Domain configuration
#-------------------------------------------------------------------------------
variable "domain_base_name" {
description = "Domain name that is already registered with AWS"
}
variable "domain_full_name" {
description = "Subdomain that will route to email-oauth2-proxy server"
}
#-------------------------------------------------------------------------------
# Server configuration
#-------------------------------------------------------------------------------
variable "timezone" {
description = "Timezone to set as default on server"
default = "UTC"
}
variable "email_oauth2_proxy_repo" {
description = "Git repository to clone containing emailproxy.py"
default = "https://github.com/simonrob/email-oauth2-proxy.git"
}
variable "email_oauth2_proxy_version" {
description = "Branch or tag name to checkout from email_oauth2_proxy_repo"
default = "main"
}
variable "email_oauth2_proxy_config" {
description = "Config file for email-oauth2-proxy to be stored as personal.config"
}