sparse-intern-71089
05/20/2020, 6:29 PMgentle-diamond-70147
05/20/2020, 6:53 PMconst stack1 = new pulumi.StackReference("dev", ...);
const stack2 = new pulumi.StackReference("dev", ...);
gentle-diamond-70147
05/20/2020, 6:54 PM"dev"
logical name for one of the stack reference resources.gentle-diamond-70147
05/20/2020, 6:54 PMbrainy-secretary-10332
05/20/2020, 7:13 PMimport * as pulumi from '@pulumi/pulumi';
import { identityStack } from './src/identity';
import { vpcStack } from './src/vpc';
import { clusterStack } from './src/cluster';
const projectName = pulumi.getProject();
// STEP 1: Identity
export const {
project,
adminsAccountId,
adminsIamServiceAccountSecret,
devsAccountId,
devsIamServiceAccountSecret
} = identityStack();
// Step 2: Managed Infra
export const {
networkName,
subnetworkName
} = vpcStack(projectName);
// STEP 3: Cluster Config
export const {
kubeconfig,
clusterName,
clusterSvcsNamespaceName,
appSvcsNamespaceName,
appsNamespaceName,
} = clusterStack(
projectName,
networkName,
subnetworkName,
devsAccountId,
project,
);
// STEP 4: Cluster Services
// dataDogStack(projectConfig, kubeconfig, clusterSvcsNamespaceName, appSvcsNamespaceName);
// STEP 5: App Services
// appServicesStack(clusterName, kubeconfig);
Am I interpreting / implementing the general flow of how to use Pulumi in its intended manner?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by