CrateDB v0.2.3 published on Friday, Oct 18, 2024 by komminarlabs
CrateDB
The CrateDB provider for Pulumi can be used to provision the resources available in CrateDB.
The CrateDB provider must be configured with credentials to deploy and update resources in CrateDB; see Installation & Configuration for instructions.
Example
import * as pulumi from "@pulumi/pulumi";
import * as cratedb from "@komminarlabs/cratedb";
export const organization = new cratedb.Organization("default", {
name: "default",
});
export const organizationName = organization.name;
console.log(`Organization Name: {organizationName}`);
import komminarlabs_cratedb as cratedb
organization = cratedb.Organization(
"default",
name="default",
)
package main
import (
"github.com/komminarlabs/pulumi-cratedb/sdk/go/cratedb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultOrg, err := cratedb.NewOrganization(ctx, "default", &cratedb.OrganizationArgs{
Name: pulumi.String("default"),
})
if err != nil {
return err
}
ctx.Export("defaultOrgName", defaultOrg.Name)
return nil
})
}
using Pulumi;
using KomminarLabs.CrateDB;
class CrateDB : Stack
{
public CrateDB()
{
var db = new Organization("default", new OrganizationArgs{
Name: "default"
});
}
}