-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for at least some simple statements like IF and FOR #191
Comments
Hi @typoworx-de - great to have you join the Pulumi community! For now, we decided not to add loops and conditionals to YAML:
I will leave the issue open for future discussions. |
If you wanted to use jinja you could use a standalone jinja compiler such as https://github.com/mattrobenolt/jinja2-cli and put that as your |
I would be very much interested in this feature. I generally prefer YAML as it's easier to read, it does not require package management, language runtime. The only downtime of yaml is they can become long but if we get some IF/FOR/etc this would help a lot. |
Ansible has a I know Pulumi is pushing language bindings but the yaml runtime could be much more powerful. |
It finally passes environment to the compiler, including PULUMI_ORGANIZATION, PULUMI_PROJECT, PULUMI_STACK, and PULUMI_CONFIG. However PULUMI_CONFIG masks secrets; is it possible to change that? |
Today I found pulumi and I really like the way Pulumi works.
As far as I understand Pulumi YAML only supports very "rudimentary" templating, I really would like to see at least some simple statements like IF and FOR to use in any line where it seems to be needed. I think about some expressions like those used by Jinja2 [https://palletsprojects.com/p/jinja/].
There already seems to be an implementation for Golang [https://github.com/noirbizarre/gonja] which I think could technically fit to Pulumi as it also uses Golang?
The text was updated successfully, but these errors were encountered: