Socket
Socket
Sign inDemoInstall

@socialgouv/azure-db

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgouv/azure-db

Create/Destroy databases on Azure. Commands are run in Kubernetes.


Version published
Weekly downloads
7
increased by600%
Maintainers
2
Weekly downloads
 
Created
Source

@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
# Create a database in DEV
azure-db create --application sample-next-app

# Create a database in PROD
azure-db create --cluster prod --application sample-next-app --database demo42 --user demo42

# Destroy a database in DEV
azure-db drop --application sample-next-app --database demo42 --user demo42

# Destroy all generated databases in DEV
azure-db drop-autodevops-dbs --application sample-next-app

FAQs

Package last updated on 24 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc