1. Packages
  2. Upstash
Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash

Upstash

upstash logo
Upstash v0.3.14 published on Friday, Aug 9, 2024 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/pulumi-upstash/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"
    )
    
    upstash logo
    Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash