Our great sponsors
-
In the same repo that the backup script is in lies a restore script. It's hosted on DockerHub making it really easy to pull and run locally:
-
The mangling of the Dockerfile they provide as an example in the Building a Custom Image for Python section of Amazon's announcement, to look more like the Dockerfile of the Postgres to S3 backup script was the more complicated part. I'll let you take a look at that what that final Dockerfile looks like here.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
By far the most annoying part of this whole thing was finding some GitHub issue comment that mentioned that Lambdas automatically set the AWS_SESSION_TOKEN and AWS_SECURITY_TOKEN environment variables, and it turns out it was causing a hard-to-track-down error in the backup script's invocation of the aws client along the lines of:
Related posts
- Images on Database Question
- Use Celery with any Django Storage as a Result Backend
- I wrote a filter for Django Compressor that removes unused CSS classes and makes your СSS files much smaller
- How to monkey-patch this simple script.py ?
- I made a website that helps you to find similar YouTube channels