pulumi/tests/integration/stack_reference_secrets/nodejs/step2/index.ts

15 lines
540 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
export const normal = pulumi.output("normal");
export const secret = pulumi.secret("secret");
// Kinda strange, but we are getting a stack reference to ourselves, and refercing the result of the /previous/
// deployment.
const org = pulumi.getOrganization();
const project = pulumi.getProject();
const stack = pulumi.getStack();
const sr = new pulumi.StackReference(`${org}/${project}/${stack}`);
export const refNormal = sr.getOutput("normal");
export const refSecret = sr.getOutput("secret");