-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables.tf
115 lines (98 loc) · 2.94 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
variable "iam_role_arn_backup" {
description = "IAM role ARN for backup (AWS)"
type = string
default = ""
}
variable "service_account_backup" {
description = "Service account for backup (GCP)"
type = string
default = ""
}
variable "azure_storage_account_name" {
description = "Azure storage account name"
type = string
default = ""
}
variable "azure_storage_account_key" {
description = "Azure storage account key"
type = string
default = ""
}
variable "azure_container_name" {
description = "Azure container name"
type = string
default = ""
}
variable "namespace" {
type = string
default = "postgresdb"
description = "Name of the Kubernetes namespace where the MYSQL deployment will be deployed."
}
variable "create_namespace" {
type = string
description = "Specify whether or not to create the namespace if it does not already exist. Set it to true to create the namespace."
default = false
}
variable "iam_role_arn_restore" {
description = "IAM role ARN for restore (AWS)"
type = string
default = ""
}
variable "service_account_restore" {
description = "Service account for restore (GCP)"
type = string
default = ""
}
# two variable of clustername and name
variable "name" {
description = "Name identifier for module to be added as suffix to resources"
type = string
default = "test"
}
variable "cluster_name" {
type = string
default = ""
description = "Specifies the name of the EKS cluster to deploy the MySQL application on."
}
variable "postgresdb_permission" {
default = false
description = "access"
type = bool
}
variable "bucket_provider_type" {
type = string
default = "s3"
description = "Choose what type of provider you want (s3, gcs)"
}
variable "postgresdb_backup_enabled" {
type = bool
default = false
description = "Specifies whether to enable backups for MySQL database."
}
variable "postgresdb_restore_enabled" {
type = bool
default = false
description = "Specifies whether to enable restoring dump to the MySQL database."
}
variable "postgresdb_backup_config" {
type = map(string)
default = {
bucket_uri = ""
s3_bucket_region = ""
cron_for_full_backup = ""
postgres_database_name = ""
# db_endpoint=""
}
description = "configuration options for MySQL database backups. It includes properties such as the S3 bucket URI, the S3 bucket region, and the cron expression for full backups."
}
variable "postgresdb_restore_config" {
type = any
default = {
bucket_uri = ""
file_name = ""
# s3_bucket_region = ""
DB_NAME = ""
backup_file_name = ""
}
description = "Configuration options for restoring dump to the MySQL database."
}