Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blitzm/azure-postgres-flexible

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blitzm/azure-postgres-flexible

@blitzm/azure-postgres-flexible is a pulumi component that simplifies the deployment of Azure PostgresSql flexible server in azure

  • 0.4.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
0
Weekly downloads
 
Created
Source

Blitzm Cloud - azure-postgres-flexible

@blitzm/azure-postgres-flexible is a pulumi component that simplifies the deployment of Azure PostgresSql flexible server in azure

Installation

This package can be installed using npm

npm install --save --save-exact @blitzm/azure-postgres-flexible

Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import { AzurePostgresSqlFlexible } from "@blitzm/azure-postgres-flexible";

// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup("sample-rc");

const vNet = new azure.network.VirtualNetwork('vnet', {
  name: 'vnet',
  resourceGroupName: resourceGroup.name,
  addressSpaces: [ '10.13.0.0/16' ]
});

const logAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace(
  "db-log-analytics",
  {
    resourceGroupName: resourceGroup.name,
    name: "db-test-analytic",
    retentionInDays: 180,
  }
);

const db = new AzurePostgresSqlFlexible("sample-db", {
  resourceGroup: resourceGroup,
  skuName: "B_Standard_B2s",
  storageSizeGB: 64,
  version: "14",
  backupRetentionDays: 7,
  geoRedundantBackupEnabled: false,
  database: {
    name: "sample",
  },
  zone: "3",
  vNet: vNet,
  diagnosticSetting: {
    name: "test-diag",
    enabledLogs: [
      { category: "PostgreSQLLogs" },
      { category: "PostgreSQLFlexSessions" },
      { category: "PostgreSQLFlexQueryStoreRuntime" },
      { category: "PostgreSQLFlexQueryStoreWaitStats" },
      { category: "PostgreSQLFlexTableStats" },
      { category: "PostgreSQLFlexDatabaseXacts" },
    ],
    metrics: [
      {
        category: "AllMetrics",
        enabled: true,
      },
    ],
    logAnalyticsWorkspaceId: logAnalyticsWorkspace.id,
  },
});
export const dbDetails = db;

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Blitzm

FAQs

Package last updated on 19 Jul 2024

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