Skip to content
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 running YAML in type checking mode, outside pulumi preview #575

Open
AaronFriel opened this issue May 6, 2024 · 0 comments
Open
Labels
kind/enhancement Improvements or new features

Comments

@AaronFriel
Copy link
Member

It's not currently possible to type check a Pulumi YAML program without running pulumi preview, and unfortunately, many providers do not work with preview in an offline capacity, and will error if not given real credentials to a cloud account.

Contrast this with all other supported languages, in which we users can use the compiler/runtime tools to check the program: tsc for TypeScript, mypy and pyright for Python, ...

Perhaps a subcommand on the main binary to run in checking mode could meet this need:

$ pulumi-language-yaml check ./dir/Pulumi.yaml

Due to provider limitations above, this is a pre-requisite for verifying Pulumi AI Answers written in YAML. This would also be useful for generating verified Pulumi AI Answers in multiple languages (via YAML, then pulumi convert) or generating templates and components for multiple languages, whether with AI or otherwise, as we can use this to verify the program and iterate before using it with pulumi convert, pulumi preview, or otherwise.

@justinvp justinvp added the kind/enhancement Improvements or new features label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants