Pulumi Launches Direct Resource Operations CLI for Ad-Hoc Cloud Tasks
Pulumi has unveiled a significant addition to its platform with the introduction of `pulumi do`, a new command-line interface (CLI) tool aimed at streamlining direct interactions with cloud infrastructure. This tool empowers both human operators and AI agents to execute immediate, ad-hoc operations on cloud resources without the typical overhead associated with full Infrastructure-as-Code (IaC) projects. The core functionality of `pulumi do` revolves around enabling direct create, read, update, and delete (CRUD) operations across a vast ecosystem of Pulumi-supported cloud providers.
Traditionally, even simple cloud tasks, such as provisioning a single database or inspecting a VPC, would necessitate setting up a dedicated IaC project, writing code, and managing state files. While this structured approach is invaluable for managing production-scale, complex, and repeatable infrastructure, it can introduce unnecessary friction for quick, imperative actions. `pulumi do` directly addresses this challenge by collapsing these multi-step workflows into a single, straightforward command.
One of the key strengths of `pulumi do` is its broad compatibility. It leverages the extensive Pulumi provider ecosystem, meaning it can interact with thousands of resource types across major cloud platforms like Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP), as well as specialized services such as Kubernetes, Cloudflare, and Datadog. This universal command structure ensures a consistent experience, regardless of the underlying cloud vendor or service. For instance, creating an AWS EKS cluster or updating tags on a Cloudflare R2 bucket can be achieved with a similar, intuitive command pattern.
The design of `pulumi do` emphasizes simplicity and efficiency. It operates in a stateless manner for its initial release, allowing each command to run independently. This makes it ideal for exploratory tasks, rapid prototyping, or urgent troubleshooting. However, Pulumi has outlined a roadmap that includes a planned stateful mode, which will enable `pulumi do` to persist resource state across operations. This future enhancement will introduce capabilities like drift detection and comprehensive lifecycle management, providing a seamless upgrade path for ad-hoc resources that evolve into more permanent infrastructure components. Furthermore, integration with Pulumi ESC (Environments, Secrets, and Configuration) is planned to simplify credential management, making the tool even more powerful for automated workflows and AI agents.
This new CLI tool is particularly relevant in the context of the growing trend towards agent-driven infrastructure. As AI agents become more sophisticated in generating and managing code, they require tools that can execute infrastructure operations efficiently and reliably. `pulumi do` provides a predictable output contract, typically JSON to stdout, and consistent exit codes, making it well-suited for programmatic consumption by AI agents. This capability allows agents to provision ephemeral cloud accounts and deploy infrastructure without direct human intervention, closing the gap between AI-generated code and safe, governed infrastructure deployment.
In essence, `pulumi do` represents Pulumi's commitment to enhancing developer experience and enabling more agile cloud operations. By offering a powerful yet simple interface for direct resource manipulation, Pulumi aims to reduce context-switching, accelerate development cycles, and empower both human engineers and intelligent automation to manage cloud infrastructure with unprecedented ease and flexibility.
Read original source