Created
May 31, 2018 21:33
-
-
Save entzik/67649df5c7abeba3a35ab0e3b8610346 to your computer and use it in GitHub Desktop.
A shell script to create a postgres database on AWS RDS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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