https://pulumi.com logo
#getting-started
Title
# getting-started
c

colossal-dusk-22897

12/06/2022, 2:54 PM
Hi, I’m newbie, so sorry for some of the more pedestrian questions. I’ve been looking and trying to find if it is possible to have Pulumi run python and yaml in the same stack? If anybody could point me in the right direction, I would appreciate it.
v

victorious-church-57397

12/06/2022, 3:05 PM
I think stacks are language specific mate, thats my interpretation anyway. so you'd need 2 separate stacks i think
c

colossal-dusk-22897

12/06/2022, 3:24 PM
🙏
q

quaint-hydrogen-7228

12/06/2022, 3:24 PM
Multiple languages in the same project is not possible AFAIK. You can split it up in multiple Pulumi projects though, with directory for each (Pulumi) project in your repository. What is the use case you want to address?
v

victorious-church-57397

12/06/2022, 3:25 PM
Sorry yeah I meant projects!
Thanks Erik
c

colossal-dusk-22897

12/06/2022, 3:32 PM
One team is deploying the network components, and they would like to use yaml. Another team is deploying infrastructure, and they prefer using python. Right now those are separate groups deploying to the same Azure subscription, resource groups, etc., but with different stacks and projects
m

many-telephone-49025

12/06/2022, 3:43 PM
hi @colossal-dusk-22897, There are no pedestrian questions! Keep asking and ask much! But I saw that @quaint-hydrogen-7228 and @victorious-church-57397 answered perfectly! 🙂
c

colossal-dusk-22897

12/06/2022, 3:48 PM
Thanks, and thanks for everybody jumping into reply
q

quaint-hydrogen-7228

12/06/2022, 6:46 PM
@colossal-dusk-22897 It sounds like you have a good split then, and I think it makes sense to have networking and things that are pretty static as YAML and more dynamic and/or frequently changed things as code.
m

many-telephone-49025

12/06/2022, 7:05 PM
You could even start with written all in Yaml and later convert them into a specific language with the call:
Copy code
pulumi convert --language python --out ./bucket-py
or whatever language you want.
3 Views