File tree Expand file tree Collapse file tree
rootfs/docker-entrypoint-initdb.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ if [[ "$DATABASE_STORAGE" == "s3" || "$DATABASE_STORAGE" == "minio" ]]; then
88 if [[ " $DATABASE_STORAGE " == " s3" ]]; then
99 AWS_REGION=$( cat /var/run/secrets/deis/objectstore/creds/region)
1010 BUCKET_NAME=$( cat /var/run/secrets/deis/objectstore/creds/database-bucket)
11+ # Convert $AWS_REGION into $WALE_S3_ENDPOINT to avoid "Connection reset by peer" from
12+ # regions other than us-standard.
13+ # See https://github.com/wal-e/wal-e/issues/167
14+ # See https://github.com/boto/boto/issues/2207
15+ if [[ " $AWS_REGION " == " us-east-1" ]]; then
16+ echo " https+path://s3.amazonaws.com:443" > WALE_S3_ENDPOINT
17+ else
18+ echo " https+path://s3-${AWS_REGION} .amazonaws.com:443" > WALE_S3_ENDPOINT
19+ fi
1120 else
1221 AWS_REGION=" us-east-1"
1322 BUCKET_NAME=" dbwal"
You can’t perform that action at this time.
0 commit comments