best-horse-36919
03/14/2023, 8:08 AMindex.ts
, which acts as a main entrypoint for pulumi.
Any help would be appreciated!tall-lion-84030
03/15/2023, 10:52 AMindex.ts
?best-horse-36919
03/15/2023, 10:55 AMindex.ts
, and what index.ts
is for!tall-lion-84030
03/15/2023, 10:59 AMindex.ts
act as the entrypoint of your program. Exporting ressource output in your entrypoint will print them in stdout where you run your pulumi program.
I suggest not exporting your full modules as your pulumi run outputs will be hard to understand. Just export what is necessary for you to read after your program has been run 👍best-horse-36919
03/15/2023, 11:06 AMtall-lion-84030
03/15/2023, 11:10 AMimport './src/cloudwatch/log-groups
best-horse-36919
03/15/2023, 11:11 AMpulumi up
??tall-lion-84030
03/15/2023, 11:11 AMbest-horse-36919
03/15/2023, 11:11 AMpulumi refresh
tall-lion-84030
03/15/2023, 11:12 AMbest-horse-36919
03/15/2023, 2:39 PMpulumi up
.
For example, I have a loadbalancer as below in src/alb/load-balancers.ts
export const planit_dev_ecs_bg_alb = new aws.alb.LoadBalancer(
"planit-dev-ecs-bg-alb",
// other options
);
And running pulumi refresh
only recognizes this Load balancer, but not any other resources.