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

busy-barista-3617

02/26/2024, 7:41 PM
Hi All. If I'm reading this correct, then it appears that I can define different runtimes for different stacks. Anyone tried that before and have it work seamlessly? Thanks.
s

salmon-account-74572

02/26/2024, 7:55 PM
Given that a stack is an instance of the resources/state defined by your code in a project, I don’t see how this is possible. Where are you seeing something that leads you to believe you can have different runtimes on a per-stack basis?
b

busy-barista-3617

02/26/2024, 8:17 PM
Maybe reading was the wrong choice of words here. And also, I was wrong about this. Thought that you could define a
runtime
in each stack so that one could have two stacks with differing underlying languages. Not sure what the use case for something like that is, but the idea of it had me 🤯
s

salmon-account-74572

02/26/2024, 8:19 PM
I would also be 🤯 if we supported different runtimes for stacks within a single project! 😄 Runtime selection is per-project, and all stacks within a project use the same runtime. Things like stack references, however, can work across projects that use different language runtimes; you could use a stack reference from TypeScript to access an output from a stack written in Go, for example.