@@ -7,7 +7,7 @@ From within this directory:
77git clone https://github.com/jameshy/pgdump-aws-lambda.git lambda-src/pgdump-aws-lambda
88```
99
10- Then copy the ` postgres-17.5 / ` folder into ` lambda-src/pgdump-aws-lambda/bin/ `
10+ Then copy the ` postgres-17.7 / ` folder into ` lambda-src/pgdump-aws-lambda/bin/ `
1111
1212Deploy:
1313``` bash
@@ -16,29 +16,29 @@ sam build && sam deploy --resolve-s3 --config-env=staging
1616
1717## Building Custom PostgreSQL Binaries (Optional)
1818
19- This repository includes pre-built PostgreSQL 17.5 binaries for x86_64 architecture. If you need to build different versions or architectures:
19+ This repository includes pre-built PostgreSQL 17.7 binaries for x86_64 architecture. If you need to build different versions or architectures:
2020
2121### Using Docker (Recommended)
2222
2323``` bash
24- # Build PostgreSQL 17.5 binaries for x86_64 (Lambda compatible)
24+ # Build PostgreSQL 17.7 binaries for x86_64 (Lambda compatible)
2525docker run -it --rm --platform linux/amd64 -v $( pwd) :/workspace amazonlinux:2023 bash
2626
2727# Inside the container:
2828dnf install -y make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel wget tar gzip bison flex perl perl-FindBin
2929
3030# Build PostgreSQL
31- wget https://ftp.postgresql.org/pub/source/v17.5 /postgresql-17.5 .tar.gz
32- tar zxf postgresql-17.5 .tar.gz
33- cd postgresql-17.5
31+ wget https://ftp.postgresql.org/pub/source/v17.7 /postgresql-17.7 .tar.gz
32+ tar zxf postgresql-17.7 .tar.gz
33+ cd postgresql-17.7
3434./configure --with-ssl=openssl
3535make
3636make install DESTDIR=/workspace/postgres-build
3737
3838# Copy binaries to project
39- mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5
40- cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5 /
41- cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5 /
39+ mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7
40+ cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7 /
41+ cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7 /
4242```
4343
4444### Using EC2 (Alternative)
@@ -56,5 +56,5 @@ After building custom binaries, update your `template.yml` to reference the new
5656In the ` AuguryCron ` target Input, add or update the ` PGDUMP_PATH ` :
5757
5858``` yaml
59- " PGDUMP_PATH " : " bin/postgres-17.5 "
59+ " PGDUMP_PATH " : " bin/postgres-17.7 "
6060` ` `
0 commit comments