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 "@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.

name

Type : string

Methods

An instance of Secret has the following methods.

create

static create(scope, parameters)

Parameters