https://pulumi.com logo
#python
Title
# python
b

brief-furniture-88748

03/14/2024, 5:06 PM
Hi all, I am trying to recreate multiple Azure resources with a python script (I need the script to scrape and pull relevant data). Pulumi AI says pulumi should work from within the python script (executing
python3 main.py
) and create the resources while some pages in the docs say that I can only execute pulumi with
pulumi up
and can't use my python script to dynamically generate those resources (very similar to
terraform apply
) Can someone please clear things for me once and for all? 😕 Much appreciated
c

colossal-airplane-46873

03/14/2024, 5:30 PM
Why do you want to use Python to run your
main.py
instead of Pulumi?
b

brief-furniture-88748

03/19/2024, 7:56 AM
@colossal-airplane-46873 lets say I am running a web server that one of its functions is to create resources in Azure (depending on an input from the user). I want to be able to create these resource during runtime using python commands instead of pulumi CLI