→ Back to Home
Infrastructure as Code

Pulumi Context API Graph Exposes Infrastructure Topology to AI Agents

Pulumi has introduced the Context API in public preview for Enterprise and Business Critical tiers, turning raw Infrastructure as Code (IaC) state into a queryable graph. Accessible via CLI v3.243.0 and governed by standard role-based access control (RBAC), the API exposes relationships across stacks, dependencies, and network topologies. Instead of requiring direct write access to infrastructure providers, external AI agents—such as Pulumi Neo, Claude Code, and Cursor—can execute structured JSON queries to inspect dependencies, verify policy compliance, and calculate downstream impact before generating or applying changes. For platform architects and DevOps practitioners, the primary bottleneck in integrating LLM-driven agents into IaC pipelines has been the lack of reliable topology context. Large language models frequently hallucinate infrastructure dependencies or generate isolated configurations that inadvertently break downstream network routes, databases, or security postures. By exposing infrastructure state as a deterministic graph rather than disconnected text files or broad provider APIs, platform teams can grant autonomous tools precise, read-only awareness of relational state. This reduces the risk of destructive change generation while preserving existing governance and auditing boundaries. This release reflects the broader convergence of infrastructure engineering and agentic workflows. As declarative and imperative IaC ecosystems mature, configuration complexity across multi-cloud environments has surpassed what static state inspections can easily diagnose. Rather than relying solely on proprietary, closed-box conversational interfaces, infrastructure tooling is evolving toward standardized query layers and structured context retrieval surfaces. Pulumi's graph-centric model follows earlier industry developments in policy-as-code and cloud asset inventory engines, adapting them specifically to serve as context retrieval backends for modern software development agents. Engineering teams evaluating agent-assisted DevOps should treat the Context API as a structured context provider rather than an orchestration engine. In practice, practitioners must ensure their organization’s access models enforce granular read permissions before connecting developer environments to live context endpoints. Teams must also anticipate potential schema and query vocabulary shifts during the public preview phase. Furthermore, organizations should maintain a strict separation between query and execution paths, using graph evaluations to inform pull request reviews and policy checks while keeping the actual provisioning strictly bounded by established CI/CD approval gates.
#infrastructure as code#pulumi#ai agents#devops#graph api
Read original source