forked from pulumi/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
14 lines (12 loc) · 732 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
// Parse and export configuration variables for this stack.
const config = new pulumi.Config();
export const password = config.require("password");
export const location = config.get("location") || azure.Locations.EastUS;
export const failoverLocation = config.get("failoverLocation") || azure.Locations.EastUS2;
export const nodeCount = config.getNumber("nodeCount") || 2;
export const nodeSize = config.get("nodeSize") || "Standard_D2_v2";
export const sshPublicKey = config.require("sshPublicKey");
export const resourceGroup = new azure.core.ResourceGroup("aks", { location });