Skip to main content

Config.Secret

caution

This is the SST v1.x Constructs doc. SST v2 is now released. If you are using v2, see the v2 Constructs doc. If you are looking to upgrade to v2, check out the upgrade steps.

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 "@serverless-stack/resources";

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