
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@upstash/pulumi
Advanced tools
The Upstash Pulumi Provider lets you manage Upstash Redis and Kafka resources programatically.
This package is available for several languages/platforms:
To use from JavaScript or TypeScript in Node.js, install using either npm
:
npm install @upstash/pulumi
or yarn
:
yarn add @upstash/pulumi
To use from Python, install using pip
:
pip install upstash_pulumi
To use from Go, use go get
to grab the latest version of the library:
go get github.com/upstash/pulumi-upstash/sdk/go/...
The following configuration points are available for the upstash
provider:
upstash:apiKey
(environment: UPSTASH_API_KEY
) - the API key for upstash
. Can be obtained from the console.upstash:email
(environment: UPSTASH_EMAIL
) - owner email of the resourcesimport * as pulumi from "@pulumi/pulumi";
import * as upstash from "@upstash/pulumi";
// multiple redis databases in a single for loop:
for (let i = 0; i < 5; i++) {
new upstash.RedisDatabase("mydb" + i, {
databaseName: "pulumi-ts-db" + i,
region: "eu-west-1",
tls: true
})
}
package main
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 {
createdTeam, err := upstash.NewTeam(ctx, "exampleTeam", &upstash.TeamArgs{
TeamName: pulumi.String("pulumi go team"),
CopyCc: pulumi.Bool(false),
TeamMembers: pulumi.StringMap{
"<owner-email>": pulumi.String("owner"),
"<some-other-user-email>": pulumi.String("dev"),
},
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import upstash_pulumi as upstash
created_cluster = upstash.KafkaCluster(
resource_name="myCluster",
cluster_name="pulumi-python-cluster",
multizone=False,
region="eu-west-1"
)
For reference, please look into /examples
directory for resource management using different languages. You can also visit developer api docs to see parameters and their behaviors.
FAQs
A Pulumi package for creating and managing upstash cloud resources.
The npm package @upstash/pulumi receives a total of 898 weekly downloads. As such, @upstash/pulumi popularity was classified as not popular.
We found that @upstash/pulumi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.