This message was deleted.
# general
s
This message was deleted.
b
i.e. I want a network.ts, cluster.ts, addon1.ts, addon2.ts to manage a gke cluster, I wound up having to rename cluster.ts to index.ts for my own sanity, the network stuff applied since it was referred to by the cluster, but the addons didn't (they rely on the cluster and the subsequent kubernetes provider)
g
in your index.ts you'll need to
import "./network.ts";
for the resources there to be picked up
https://www.typescriptlang.org/docs/handbook/modules.html#import is a good resource for understanding the different ways to import in TS
the main thing to know is
import * as network from "./network.ts";
won't actually do anything unless you reference something from the import - e.g.
export const networkId = network.networkId;
or similar
but
import "./network.ts";
will "execute" the resources you've defined there
b
ty, I knew there had to be a way to include the resources to execute but wasn't sure how
o
the pulumi examples repo is fantastic and even still I forget to go there some times. Definitely check it out for some generic patterns
231 Views