You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It's not currently possible to type check a Pulumi YAML program without running
pulumi preview
, and unfortunately, many providers do not work withpreview
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 withpulumi convert
,pulumi preview
, or otherwise.The text was updated successfully, but these errors were encountered: