-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
174 lines (141 loc) · 4.39 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
variable "aws_ami_name" {
description = "Filter to be used to find a Database Lab AMI by name"
default = "DBLABserver"
}
variable "dle_version_full" {
description = "3-digit DLE version (2-digit major + minor)"
default = "2.4.1"
}
variable "aws_deploy_region" {
description = "AWS Region"
default = "us-east-1"
}
variable "aws_ami_owner" {
description = "Filter for the AMI owner"
default = "self"
}
variable "aws_deploy_ec2_instance_type" {
description = "Type of EC2 instance"
default = "t2.micro"
}
variable "aws_keypair" {
description = "Key pair to access the EC2 instance"
default = "default"
}
variable "aws_deploy_allow_ssh_from_cidrs" {
description = "List of CIDRs allowed to connect to SSH"
default = ["0.0.0.0/0"]
}
variable "aws_deploy_allow_api_from_cidrs" {
description = "List of CIDRs allowed to connect to API"
default = ["0.0.0.0/0"]
}
variable "aws_deploy_ec2_instance_tag_name" {
description = "Value of the tags Name to apply to all resources"
default = "DBLABserver"
}
variable "aws_deploy_dns_zone_name" {
description = "The Route53 hosted zone where the DLE will be managed"
default = "aws.postgres.ai"
}
variable "aws_deploy_dns_api_subdomain" {
description = "The Hosted zone subdomain that will point to the DLE API"
default = "demo-api"
}
variable "aws_deploy_certificate_email" {
description = "The admin email address to use when when requesting a certificate from Let's Encrypt"
default = "[email protected]"
}
variable "aws_deploy_ebs_availability_zone" {
description = "AZ for EBS volumes"
default = "us-east-1a"
}
variable "aws_deploy_ebs_size" {
description = "The size (GiB) for data volumes used by DLE"
default = "1"
}
variable "aws_deploy_ebs_type" {
description = "EBS volume type used by DLE"
default = "gp2"
}
variable "aws_deploy_ec2_volumes_names" {
description = "List of paths for EBS volumes mounts"
default = [
"/dev/xvdf",
"/dev/xvdg",
"/dev/xvdh",
]
}
variable "source_postgres_dbname" {
description = "Source database name"
default = "dbname"
}
variable "source_postgres_host" {
description = "Source database host"
default = "localhost"
}
variable "source_postgres_port" {
description = "Source database port"
default = "5432"
}
variable "source_postgres_username" {
description = "Source database username"
sensitive = true
}
variable "source_postgres_password" {
description = "Source database password"
sensitive = true
}
variable "source_postgres_version" {
description = "Source PostgreSQL major version (examples: 9.6, 11, 14)"
default = "13"
}
variable "dle_verification_token" {
description = "DLE verification token"
default = ""
}
variable "dle_debug_mode" {
description = "DLE debug mode"
default = "false"
}
variable "dle_retrieval_refresh_timetable" {
description = "DLE logical refresh timetable"
default = "0 0 * * *"
}
variable "platform_access_token" {
description = "Access token generated on Postgres.ai"
}
variable "platform_joe_signing_secret" {
description = "Joe config App.joe_signing_secret.webui.credentials.signingSecret value"
default = ""
}
variable "platform_project_name" {
description = "Joe config App.joe_signing_secret.webui.channels.project value"
default = "aws_test_tf"
}
variable "vcs_github_secret_token" {
description = "GitHub token used to automatically check DB migrations in GitHub Actions"
}
variable "postgres_config_shared_preload_libraries" {
description = "shared_preload_libraries postgresql.conf parameter value for clones"
}
variable "source_type" {
description = "Type of data source used for DLE. For now it can be postgres or S3"
default = "postgres"
}
variable "source_pgdump_s3_bucket" {
description = "S3 bucket name where a dump (created using pg_dump) is stored. This dump will be used as data source. Leave the value empty (default) to use a different source of data."
default = ""
}
variable "source_pgdump_path_on_s3_bucket" {
description = "relative path to pg_dump file or directory"
default = ""
}
variable "source_pgdump_s3_mount_point"{
description = "mount point on DLE EC2 instance where S3 bucket with the source dump file/directory is mounted to. If pgdump_s3_bucket is empty, pgdump_s3_mount_point is ignored"
default = "/s3/pg_dump"
}
variable "postgres_dump_parallelJobs"{
description = "DLE config parallelJobs parameter value"
default = "2"
}