From 5ba1d25e3fd532ebc21df80e4ad113d3e2af8bea Mon Sep 17 00:00:00 2001 From: Steven Hoang Date: Wed, 6 Mar 2024 13:55:00 +0800 Subject: [PATCH] Update StackEnv.ts --- Common/StackEnv.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Common/StackEnv.ts b/Common/StackEnv.ts index 07c24655..c934c7d8 100644 --- a/Common/StackEnv.ts +++ b/Common/StackEnv.ts @@ -1,11 +1,15 @@ import * as pulumi from '@pulumi/pulumi'; -import { getValue } from './ConfigHelper'; + +console.log( + 'Environments\n', + Object.keys(process.env) + .filter((key) => key.startsWith('PULUMI_')) + .map((key) => `\t${key}: ${process.env[key]}`) + .join('\n') +); export const isDryRun = Boolean(process.env.PULUMI_NODEJS_DRY_RUN); -export const organization = - process.env.PULUMI_NODEJS_ORGANIZATION ?? - getValue('organization') ?? - pulumi.getOrganization().toLowerCase(); +export const organization = process.env.PULUMI_NODEJS_ORGANIZATION!; export const projectName = process.env.PULUMI_NODEJS_PROJECT ?? pulumi.getProject().toLowerCase(); export const stack =