Skip to content

Instantly share code, notes, and snippets.

Created April 8, 2020 11:10
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
import * as pulumi from "@pulumi/pulumi";
import * as random from "@pulumi/random";
const username = new random.RandomString("my-string", {
length: 16,
special: true,
}, {
// RandomString has an output of 'result' where the string actually is stored
additionalSecretOutputs: ["result"]
export const secret = username.result;
▶ pulumi up --yes --skip-preview
Updating (dev):
Type Name Status
+ pulumi:pulumi:Stack secrets-dev created
+ └─ random:index:RandomString my-string created
secret: "[secret]"
+ 2 created
Duration: 8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment