Skip to main content

Config.Secret

The Config.Secret construct is a higher level CDK construct that makes it easy to create secret environment variables in the app.

Examples

import { Config } from "sst/constructs";

new Config.Secret(stack, "STRIPE_KEY");

Constructor

new Config.Secret(scope, id)

Parameters

Properties

An instance of Secret has the following properties.

id

Type : string

name

Type : string

Methods

An instance of Secret has the following methods.

create

static create(scope, parameters)

Parameters