-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
141 lines (118 loc) · 3.17 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
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
131
132
133
134
135
136
137
138
139
140
141
variable "environment" {
description = "The environment for the infrastructure"
type = string
default = "stage"
}
variable "vpc_cidr" {
description = "The CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
variable "backend_service_cpu" {
description = "The CPU units for the backend service"
type = number
default = 256
}
variable "backend_service_memory" {
description = "The memory for the backend service"
type = number
default = 512
}
variable "backend_service_port" {
description = "The port for the backend service"
type = number
default = 3000
}
variable "frontend_service_cpu" {
description = "The CPU units for the frontend service"
type = number
default = 256
}
variable "frontend_service_memory" {
description = "The memory for the frontend service"
type = number
default = 512
}
variable "frontend_service_port" {
description = "The port for the frontend service"
type = number
default = 80
}
variable "region" {
description = "The region for the infrastructure"
type = string
default = "us-west-2"
}
variable "alb_public_access" {
description = "Whether the ALB should be publicly accessible"
type = bool
default = true
}
variable "acm_certificate_arn" {
description = "The ARN for the ACM certificate"
type = string
}
variable "project_name" {
description = "The name of the project"
type = string
}
variable "backend_readonly_root_filesystem" {
description = "Whether the backend service should have a read-only root filesystem"
type = bool
default = true
}
variable "create_env_bucket" {
description = "Whether to create an environment bucket"
type = bool
default = false
}
variable "backend_service_environment" {
description = "Environment variables for the backend service"
type = list(map(string))
default = null
}
variable "frontend_service_environment" {
description = "Environment variables for the frontend service"
type = list(map(string))
default = null
}
variable "db_engine" {
description = "The engine for the database"
type = string
default = "postgres"
}
variable "db_engine_version" {
description = "The version for the database engine"
type = string
default = "11.5"
}
variable "db_instance_class" {
description = "The instance class for the database"
type = string
default = "db.t2.micro"
}
variable "db_storage_size" {
description = "The storage size for the database"
type = number
default = 20
}
variable "db_port" {
description = "The port for the database"
type = number
default = 5432
}
variable "db_publicly_accessible" {
description = "Whether the database should be publicly accessible"
type = bool
default = false
}
variable "db_parameter_group_family" {
description = "The family for the database parameter group"
type = string
default = "postgres11"
}
variable "skip_final_snapshot" {
description = "Whether to skip the final snapshot"
type = bool
default = true
}