generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
https://upstash.com/docs/redis/quickstarts/ion
import * as upstash from '@upstash/pulumi'
const upstashProvider = new upstash.Provider(
'Upstash',
{
apiKey: process.env.UPSTASH_API_KEY,
email: process.env.UPSTASH_EMAIL,
},
{ parent: this },
)
sst.linkable(upstash.RedisDatabase, (redis) => ({
properties: {
endpoint: redis.endpoint,
restToken: redis.restToken,
},
}))
const redis = new upstash.RedisDatabase(
'Redis',
{
region: 'us-east-1',
databaseName: $interpolate`my-app-${$app.stage}-redis`,
eviction: true,
tls: true,
},
{ provider: upstashProvider, parent: this },
)
new sst.aws.Nextjs('Web', {
link: [redis],
})Metadata
Metadata
Assignees
Labels
No labels