Skip to content

Instantly share code, notes, and snippets.

@entzik
Created May 31, 2018 21:33
Show Gist options
  • Save entzik/67649df5c7abeba3a35ab0e3b8610346 to your computer and use it in GitHub Desktop.
Save entzik/67649df5c7abeba3a35ab0e3b8610346 to your computer and use it in GitHub Desktop.
A shell script to create a postgres database on AWS RDS
#!/bin/sh
aws rds create-db-instance \
--db-instance-identifier HomeAutomationDB \
--db-instance-class db.t2.micro \
--region eu-west-3 \
--engine postgres \
--allocated-storage 5 \
--no-publicly-accessible \
--db-name homeautomation \
--master-username dbmaster \
--master-user-password DB_PASSWORD \
--backup-retention-period 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment