sparse-intern-71089
09/17/2022, 4:38 PMgorgeous-accountant-60580
09/17/2022, 4:45 PMclever-hair-26722
09/17/2022, 4:48 PMgorgeous-accountant-60580
09/17/2022, 4:49 PMclever-hair-26722
09/17/2022, 4:51 PMclever-hair-26722
09/17/2022, 4:51 PMgorgeous-accountant-60580
09/17/2022, 5:02 PMclever-hair-26722
09/17/2022, 5:04 PMgorgeous-accountant-60580
09/17/2022, 5:06 PMgorgeous-accountant-60580
09/17/2022, 5:07 PMgorgeous-accountant-60580
09/17/2022, 5:09 PMDependsOn
, unless there’s an actual output variable you would use as input. Any other way of running a script, such as creating a VM, should also work for this.
https://www.pulumi.com/docs/intro/concepts/resources/options/dependson/clever-hair-26722
09/17/2022, 5:14 PMgorgeous-accountant-60580
09/17/2022, 5:15 PMclever-hair-26722
09/17/2022, 5:15 PMgorgeous-accountant-60580
09/17/2022, 5:16 PMclever-hair-26722
09/17/2022, 5:17 PMbillowy-army-68599
apply
block happens after the outputs for that resource have resolved. So if you want to do something when a resource is created:
myresource.output..apply(
lambda variable: // do somehting here
)
clever-hair-26722
09/18/2022, 7:49 AM