-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
140 lines (121 loc) · 4.33 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
variable "tags" {
description = "AWS Tags to add to all resources created (where possible); see https://aws.amazon.com/answers/account-management/aws-tagging-strategies/"
type = map(any)
default = {}
}
variable "prefix" {
description = "Prefix for all the resources to be created. Please note thst 2 allows only lowercase alphanumeric characters and hyphen"
default = "wordpress"
}
variable "site_domain" {
description = "The primary domain name of the website"
}
variable "public_alb_domain" {
description = "The public domain name of the ALB"
}
variable "cf_price_class" {
description = "The price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100"
default = "PriceClass_100"
}
variable "error_ttl" {
description = "The minimum amount of time (in secs) that cloudfront caches an HTTP error code."
default = "30"
}
variable "desired_count" {
description = "The number of instances of fargate tasks to keep running"
default = "2"
}
variable "log_retention_in_days" {
description = "The number of days to retain cloudwatch log"
default = "1"
}
variable "vpc_cidr" {
description = "The CIDR block for the VPC"
default = "10.0.0.0/16"
}
variable "public_subnet_cidrs" {
description = "List of CIDR blocks for public subnets"
default = ["10.0.0.0/24", "10.0.1.0/24", "10.0.2.0/24"]
}
variable "private_subnet_cidrs" {
description = "List of CIDR blocks for private subnets"
default = ["10.0.100.0/24", "10.0.101.0/24", "10.0.102.0/24"]
}
variable "environment" {
description = "Name of the application environment. e.g. dev, prod, test, staging"
default = "prod"
}
variable "db_backup_retention_days" {
description = "Number of days to retain db backups"
default = "1"
}
variable "db_backup_window" {
description = "The daily time range during which automated backups for rds are created if automated backups are enabled using the BackupRetentionPeriod parameter. Time in UTC."
default = "07:00-09:00"
}
variable "db_max_capacity" {
description = "The maximum Aurora capacity unit of the db. Ref - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html"
default = "1"
}
variable "db_min_capacity" {
description = "The minimum Aurora capacity unit of the db. Ref - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html"
default = "1"
}
variable "db_master_username" {
description = "Master username of the db"
}
variable "db_master_password" {
description = "Master password of the db"
}
variable "db_engine_version" {
description = "The database engine version"
default = "3.03.2"
}
variable "db_auto_pause" {
description = "Whether to enable auto pause"
default = true
}
variable "db_seconds_until_auto_pause" {
description = "The time in seconds before Aurora DB is paused"
default = 300
}
variable "task_memory" {
description = "The amount (in MiB) of memory used by the task"
default = 2048
}
variable "task_cpu" {
description = "The number of cpu units used by the task"
default = 1024
}
variable "scaling_up_cooldown" {
description = "The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start (upscaling)"
default = "60"
}
variable "scaling_down_cooldown" {
description = "The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start (downscaling)"
default = "300"
}
variable "scaling_up_adjustment" {
description = " The number of tasks by which to scale, when the upscaling parameters are breached"
default = "1"
}
variable "scaling_down_adjustment" {
description = " The number of tasks by which to scale (negative for downscaling), when the downscaling parameters are breached"
default = "-1"
}
variable "task_cpu_low_threshold" {
description = "The CPU value below which downscaling kicks in"
default = "30"
}
variable "task_cpu_high_threshold" {
description = "The CPU value above which downscaling kicks in"
default = "75"
}
variable "max_task" {
description = "Maximum number of tasks should the service scale to"
default = "2"
}
variable "min_task" {
description = "Minimum number of tasks should the service always maintain"
default = "1"
}