@general-motion/pulumi-planetscale
v1.0.0
Published
Pulumi TypeScript SDK for the PlanetScale Terraform provider.
Downloads
484
Readme
Pulumi PlanetScale
@general-motion/pulumi-planetscale is a Pulumi TypeScript SDK for PlanetScale, generated from the
PlanetScale Terraform provider through Pulumi's Terraform provider bridge.
Usage
Install from npm:
npm install @general-motion/pulumi-planetscaleCreate a PlanetScale Postgres role:
import * as planetscale from "@general-motion/pulumi-planetscale";
const appRole = new planetscale.PostgresBranchRole("appRole", {
organization: "acme",
database: "app-db",
branch: "main",
name: "app_production",
inheritedRoles: ["pg_read_all_data", "pg_write_all_data"],
});Read an existing branch role:
const appRole = planetscale.getPostgresBranchRoleOutput({
organization: "acme",
database: "app-db",
branch: "main",
id: "role-id",
});