deis / postgres

A PostgreSQL database used by Deis Workflow.
https://deis.com
MIT License
36 stars 22 forks source link

fix(setup-envdir): convert AWS_REGION to WALE_S3_ENDPOINT #171

Closed bacongobbler closed 7 years ago

bacongobbler commented 7 years ago

Converting $AWS_REGION into $WALE_S3_ENDPOINT avoids the "Connection reset by peer" error when uploading files to buckets creted in regions other than us-east-1.

See boto/boto#2207 See wal-e/wal-e#167

deis-bot commented 7 years ago

@kmala and @paulczar are potential reviewers of this pull request based on my analysis of git blame information. Thanks @bacongobbler!

bacongobbler commented 7 years ago

manually tested and confirmed that this patch works for me.

PostgreSQL init process complete; ready for start up.

LOG:  database system was shut down at 2016-11-30 16:28:48 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  autovacuum launcher started
LOG:  database system is ready to accept connections
bacongobbler commented 7 years ago

@kmala has also tested this manually and verified it worked for him as well.