Skip to content

Commit b0159c4

Browse files
committed
improve PGDUMP_PATH documentation
1 parent 2c3b861 commit b0159c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ Support for this can be enabled my making your Cloudwatch Event look like this.
9292
{
9393
"PGDATABASE": "dbname",
9494
"PGUSER": "postgres",
95-
"USE_IAM_AUTH": true,
9695
"PGHOST": "host",
9796
"S3_BUCKET" : "db-backups",
98-
"ROOT": "hourly-backups"
97+
"ROOT": "hourly-backups",
98+
"USE_IAM_AUTH": true
9999
}
100100
```
101101

@@ -132,7 +132,12 @@ scp -i ~/aws.pem [email protected]:/usr/bin/pg_dump ./bin/postgres-13.3/pg_
132132
scp -i ~/aws.pem [email protected]:/usr/lib64/{libcrypt.so.1,libnss3.so,libsmime3.so,libssl3.so,libsasl2.so.3,liblber-2.4.so.2,libldap_r-2.4.so.2} ./bin/postgres-13.3/
133133
scp -i ~/aws.pem [email protected]:/usr/pgsql-13/lib/libpq.so.5 ./bin/postgres-13.3/libpq.so.5
134134
```
135-
3. When calling the handler, pass the environment variable `PGDUMP_PATH=postgres-13.3` to use the binaries in the bin/postgres-13.3 directory.
135+
3. To use the new postgres binary pass PGDUMP_PATH in the event:
136+
```json
137+
{
138+
"PGDUMP_PATH": "bin/postgres-13.3"
139+
}
140+
```
136141

137142
#### Creating a new function zip
138143

0 commit comments

Comments
 (0)