Hello
@enough-portugal-51201 , have a look at the Automation API. It is a way to embed Pulumi into a bigger automation, as you want.
https://www.pulumi.com/automation/
Do join the
#automation-api channel for all your questions on this product feature,