You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Your source PostgreSQL database can be located anywhere, but DLE with other comp
20
20
* Read/Write permissions on Route53
21
21
* Read/Write permissions on Cloudwatch
22
22
23
-
## How to use
23
+
## Configuration overview
24
24
-:construction: Currently, it is supposed that you run `terraform` commands on a Linux machine. MacOS and Windows support is not yet implemented (but planned).
25
25
- It is recommended to clone this Git repository and adjust for your needs. Below we provide the detailed step-by-step instructions for quick start (see "Quick start") for a PoC setup
26
26
- To configure parameters used by Terraform (and the Database Lab Engine itself), you will need to modify `terraform.tfvars` and create a file with secrets (`secret.tfvars`)
@@ -31,7 +31,7 @@ Your source PostgreSQL database can be located anywhere, but DLE with other comp
31
31
- values passed on the command line
32
32
- All variables starting with `postgres_` represent the source database connection information for the data (from that database) to be fetched by the DLE. That database must be accessible from the instance hosting the DLE (that one created by Terraform)
33
33
34
-
## Quick start
34
+
## How-to guide: using this Terraform module to set up DLE and its components
35
35
The following steps were tested on Ubuntu 20.04 but supposed to be valid for other Linux distributions without significant modification.
36
36
37
37
1. SSH to any machine with internet access, it will be used as deployment machine
@@ -65,12 +65,23 @@ The following steps were tested on Ubuntu 20.04 but supposed to be valid for oth
65
65
aws_deploy_allow_ssh_from_cidrs = ["0.0.0.0/0"]
66
66
aws_deploy_dns_api_subdomain = "tf-test"# subdomain in aws.postgres.ai, fqdn will be ${dns_api_subdomain}-engine.aws.postgres
67
67
68
+
# Source – two options. Choose one of two:
69
+
# - direct connection to source DB
70
+
# - dump stored on AWS S3
71
+
72
+
# option 1 – direct PG connection
73
+
source_type = "postgres" # source is working dome postgres database
description="shared_preload_libraries postgresql.conf parameter value for clones"
149
149
}
150
+
151
+
variable"source_type" {
152
+
description="Type of data source used for DLE. For now it can be postgres,S3"
153
+
default=""
154
+
}
155
+
156
+
variable"source_pgdump_s3_bucket" {
157
+
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."
158
+
default=""
159
+
}
160
+
161
+
variable"source_pgdump_path_on_s3_bucket" {
162
+
description="relative path to pg_dump file or directory"
163
+
default=""
164
+
}
165
+
166
+
variable"source_pgdump_s3_mount_point"{
167
+
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"
0 commit comments