CLI and SDK rollup: Policy commands, smarter state moves, and more
We shipped a bunch of new features and improvements in the Pulumi CLI and SDK over the past month. A few highlights:
- New policy commands, including
pulumi policy get,pulumi stack policy lsto see which policies apply to a stack,pulumi policy issue editandexport, and tag-based match rules forpulumi policy group newandedit(v3.274, v3.275) - CLI support for policy exceptions, so exceptions you create in Pulumi Cloud apply automatically during
pulumi previewandpulumi up(v3.274.1) - A more capable
pulumi state move, with wildcards,--exclude,--parent, and--force, plus a diff view inpulumi state edit(v3.277, v3.279) pulumi env change-requestis nowpulumi env approvaland handles environment open requests too, andpulumi env editoffers to submit your changes as a change request when an environment requires approval (v3.278)- Generated
existsmethods for Go and Python SDKs, which check whether a resource exists without adopting it into your stack (v3.274) - Many more Automation API commands for Node.js, Python, and Go, including
preview,destroy,login,deployment,insights,template, andschema(v3.274–v3.277) - Terminal status updates through the OSC 7501 Program Status Protocol, so terminals that support it can tell you when Pulumi is waiting for your input (v3.275)
pulumi previewno longer needs thestack:encryptpermission, andpulumi newcan now run your cloud’s sign-in for you when it finds missing or expired credentials (v3.278)
We also removed support for DIY backends that don’t use project-scoped stacks (v3.275), so if you’re still on one, see the upgrade steps before updating.
See the Releases page on GitHub for the full list.