pulumi policy new accepts --runtime-options
Introduced 2026-07-23 · score 0.93
HOW TO USE IT
When creating a policy pack with runtime-specific settings, run `pulumi policy new` with `--runtime-options` and comma-separated `key=value` options.
pulumi policy new aws-python --runtime-options toolchain=uvpulumi policy new <template> --runtime-options <key1>=<value1>,<key2>=<value2>WHY THIS HELPS
Create a Pulumi policy pack with runtime options.
REQUIREMENTS AND LIMITATIONS
- Version: 3.254.0
- template: Template name or URL; if omitted, suggested templates are shown interactively.
- --runtime-options: Additional language runtime options, formatted as comma-separated `key=value` pairs. The docs do not enumerate allowed keys or values.
- Prerequisite: Use Pulumi CLI v3.254.0 or later for this flag.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.254.0
- https://github.com/pulumi/pulumi/pull/23992
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy_new/
Check the installed version and the source before using it. Entry JSON