pulumi/examples/minimal/index.ts
Matt Ellis 153729683a Allow eliding name in pulumi.Config .ctor
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
2018-08-06 16:03:54 -07:00

9 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")}`);