153729683a
When this argument is not provided, we'll default to the value of pulumi.getProject(). This is what you want for application level code anyway and it matches the CLI behavior where if you don't qualify a key with a package we use the name of the current project. Fixes #1581
8 lines
237 B
TypeScript
8 lines
237 B
TypeScript
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
import { Config } from "@pulumi/pulumi";
|
|
|
|
let config = new Config();
|
|
console.log(`Hello, ${config.require("name")}!`);
|
|
console.log(`Psst, ${config.require("secret")}`);
|
|
|