-
Notifications
You must be signed in to change notification settings - Fork 27
/
config.ts
26 lines (21 loc) · 1.05 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import * as pulumi from "@pulumi/pulumi";
let pulumiConfig = new pulumi.Config();
// Existing Pulumi stack reference in the format:
// <organization>/<project>/<stack> e.g. "myUser/myProject/dev"
const infraStackRef = new pulumi.StackReference(pulumiConfig.require("infraStackRef"));
const clusterStackRef = new pulumi.StackReference(pulumiConfig.require("clusterStackRef"));
export const config = {
// Infra
privateSubnetIds: infraStackRef.getOutput("privateSubnetIds"),
publicSubnetIds: infraStackRef.getOutput("publicSubnetIds"),
// Cluster
kubeconfig: clusterStackRef.getOutput("kubeconfig"),
clusterName: clusterStackRef.getOutput("clusterName"),
securityGroupIds: clusterStackRef.getOutput("securityGroupIds"),
clusterSvcsNamespaceName: clusterStackRef.getOutput("clusterSvcsNamespaceName"),
appSvcsNamespaceName: clusterStackRef.getOutput("appSvcsNamespaceName"),
appsNamespaceName: clusterStackRef.getOutput("appsNamespaceName"),
// Misc
databaseUsername: "admin",
databasePassword: "supersecurepassword123",
};