@socialgouv/azure-db
Create/Destroy databases on Azure. Commands are run in Kubernetes.
yarn global add @socialgouv/azure-db
and you'll get azure-db
command available.
:warning: Need kubectl
CLI installed on your system and kubernetes context installed.
CLI
Usage: azure-db command [options]
Commands:
azure-db create create a new database and user
azure-db drop destroy a database and a user
azure-db drop-autodevops-dbs destroy all generated databases
Options:
--cluster k8s cluster [required] [choices: "prod", "dev"]
--application gitlab application name [required]
--database database name
--user user name
--pg-name alternative PG server prefix
--secret-name alternative secret name
Examples
azure-db create --application sample-next-app
azure-db create --cluster prod --application sample-next-app --database demo42 --user demo42
azure-db drop --application sample-next-app --database demo42 --user demo42
azure-db drop-autodevops-dbs --application sample-next-app