Skip to content

Instantly share code, notes, and snippets.

@williams9438
Forked from entzik/create-database.sh
Created May 11, 2023 12:36
Show Gist options
  • Save williams9438/8ca5124dc9927d954b1adbdd981a7e42 to your computer and use it in GitHub Desktop.
Save williams9438/8ca5124dc9927d954b1adbdd981a7e42 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