Skip to content

Backing up AWS RDS postgresql databases #153

Answered by prodrigestivill
garybrowne asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can use this image, no need to use links nor depends_on.

Just configure the environment variables to point to your running PostgreSQL (running in RDS or elsewhere) and ensure the routing and firewalls (AWS security groups) allow the connections from this container.

Mainly you would need to setup the following in case you opt to use ECS:

  • Environment variables:
    • POSTGRES_HOST: postgres RDS domain name
    • POSTGRES_DB
    • POSTGRES_USER
    • POSTGRES_PASSWORD: ideally using secrets
  • Data Volumes: (ECS Storage Options)
    • A persistent volume (EBS, EFS, ...) to store the backups at /backups.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prodrigestivill
Comment options

Answer selected by prodrigestivill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants