Upstash

Community
Package contributed by a community member
v0.0.19 published on Wednesday, Aug 3, 2022 by Upstash

The Upstash provider for Pulumi can be used to provision Upstash cloud resources such as Upstash Redis and Kafka.

The Upstash provider must be configured with credentials to manage resources in Upstash. Necessary credentials - namely management api keys - can be obtained from Upstash Console.

Example

import * as upstash from "@upstash/pulumi";
const createdDb = new upstash.RedisDatabase("mydb", {
    databaseName: "pulumi-ts-db",
    region: "eu-west-1",
    tls: true,
    multizone: true
})
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/upstash/upstash-pulumi-provider/sdk/go/upstash"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {

        createdDb, err := upstash.NewRedisDatabase(ctx, "exampleDB", &upstash.RedisDatabaseArgs{
			DatabaseName: pulumi.String("pulumi-go-db"),
			Region:       pulumi.String("eu-west-1"),
			Tls:          pulumi.Bool(true),
			Multizone:    pulumi.Bool(true),
		})
		if err != nil {
			return err
		}

		ctx.Export("redisDB", createdDb)

		return nil
	})
}
import upstash_pulumi as upstash
created_db = upstash.RedisDatabase(
    resource_name="myDb",
    database_name="pulumi-python-db",
    consistent=False,
    tls=True,
    region="eu-west-1"
)