Skip to content
pulumi

pulumi

Pulumi is an open-source infrastructure as code platform that helps humans and agents build and manage cloud infrastructure with real programming languages.

www.pulumi.com
pulumipulumi
CYBERSECURITY AND PRIVACY

How FIPS led to leaner container images for everyone

It started with a familiar story. A Trivy scan of our service image flagged six distinct critical vulnerabilities and nine distinct high-severity vulnerabilities across curl and libcurl. We expected to rush out a patch. Then we traced what curl was doing in the image. Its only job was to make a health check request to localhost. Did we need it there at all? That question took on more urgency as we worked with teams running self-hosted Pulumi Cloud in air-gapped networks or inside FedRAMP authorization boundaries. When those teams run our images inside their own networks, every package in them becomes theirs to scan, justify in a security review, and keep patched. Anything we ship that doesn’t need to be there becomes their problem, too. Today, four new FIPS image variants are generally available on Docker Hub — three for self-hosted Pulumi Cloud, and one for customer-managed runners. The changes we’ve made apply to our standard container images too, so everyone running self-hosted Pulumi Cloud or customer-managed runners now gets leaner images, whether or not they need FIPS. Here’s how we got there. ## Charting a course to FIPS mode for each image FIPS, short for Federal Information Processing Standards, is the U.S. government’s set of rules for cryptography. For a FIPS image, the first thing that matters is where its cryptography comes from. The FIPS images for self-hosted Pulumi Cloud cover three pieces: the API service, the console (the web app), and a small tool that applies database migrations. The API service and the migrations tool are Go programs, and Go brings its own cryptographic module, so we could run those two in FIPS mode, where they use only FIPS-approved cryptography. The console, a Node.js app, was a different story, so we started with the API and came back to it. ## Replacing curl with a single-purpose binary We traced curl in the API and workflow pool images back to their container health checks. While looking for a way to remove it, we realized we’d already built a similar probe for local development. We extended it into http_health, a small binary that only sends requests to loopback addresses. The container health checks, API integration tests, and local dependency checks now use the same probe. Our API tests already used their own certificate authority (CA), so we made custom CA support part of the probe. Removing curl cleared those findings from the API image. The migrations image turned out to be a freebie. It runs a small Go program to apply database migrations, and there was nothing extra we needed to strip out. Both binaries carried Go’s cryptographic module, so we could enable FIPS mode and keep Alpine, at least for now. Two images down. Then came the console. ## Rewriting the console backend in Go The curl work left us with a question for the FIPS console build: what does this image actually need at runtime, and what is just along for the ride? The console had run on Alpine for years, most recently on the standard Node.js 22 Alpine image. A small Express backend handled sign-in and configuration and served the Angular frontend. The Node.js console leans on OpenSSL, so it needed a base image with OpenSSL’s FIPS provider, the component that supplies FIPS-approved cryptography, and a host running in FIPS mode. We started with Red Hat Universal Base Image (UBI) 9. Getting the console running in FIPS mode on UBI 9 was a milestone. We had a working image with the same backend and frontend. Once the honeymoon was over, we had to reckon with what came along for the ride. UBI brought a lot more operating system than our Alpine image, and the scans showed it. The image meant for teams with the strictest security requirements carried more CVEs than our standard one, and keeping both patched meant maintaining two different foundations. It was clear we still had some work to do before this felt right. We could start with a smaller UBI image, strip out what we didn’t need, and harden what remained. That would trim the image, but the console would still depend on Node.js and OpenSSL. For a backend that mostly handled sign-in and served an Angular app, it was worth asking whether we needed Node.js at runtime at all. We decided to rewrite the backend in Go. We called it “Node to Go.” There was a little gratitude in that name for the Node.js backend we were saying goodbye to, and no mystery about where we were headed. It was also close enough to Chappell Roan’s “HOT TO GO!” to give the rewrite a soundtrack. Then came the first test scan of the rebuild. We built both FIPS console images within a minute of each other and scanned them with the same version of Trivy. We expected fewer findings. Seeing the scan findings drop from 249 to two was still striking. ## Releasing agent containers and binaries together The customer-managed workflow agent is the one image in this release that some customers build themselves. We publish a container and a standalone binary for teams that want to package it their own way. The agent uses semantic versions, like our open-source tools, and has its own release cadence. A version like v2.3.4 should mean the same thing however you get it. Adding the FIPS image gave us a reason to revisit how we shipped both. The public agent repo depended on private service code, which made it harder for people outside Pulumi to clone the repo and contribute. We moved the build and signing into our release pipeline. The public repository now verifies the signed files from get.pulumi.com and mirrors them to GitHub Releases. Existing download links still work, and a base-image or Go dependency update can go out as an agent patch without someone having to cut a release by hand. ## Putting scan results in charge of releases We came out of this with less software in the images and a simpler release process. The next job was keeping those images lean and patched. We kept the tools you’ll see across our open-source repos: Dependabot alerts flag vulnerable dependencies, and Renovate opens pull requests with updates. We adopted Grype after comparing our scan results with what customers were seeing, and moved image scans earlier in the release process so we could catch problems before publication. The change was putting those scan results in charge of whether an image ships. When a fix becomes available for a serious vulnerability, the clock starts. If the image still contains the vulnerability after our remediation window, the pipeline blocks publication and alerts our team. The same check applies to standard and FIPS images, so every self-hosted Pulumi Cloud customer gets images held to the same patching policy. ## Moving to a distroless base Getting the console back onto Alpine showed how much we could strip away and still run the same application. With the API, console, and migrations all running as statically compiled Go binaries, we decided to see how much of Alpine we still needed. We had to revisit what our code assumed about the environment it ran in, from where it got time zone data to whether the images started on both CPU architectures we support. We made the runtime dependencies explicit and tested the images on both architectures. That let us move the API, console, and migrations to a distroless base without a shell or package manager. ## What ships today | If you run | Pull from Docker Hub | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Self-hosted Pulumi Cloud | pulumi/service-fips, pulumi/console-fips, and pulumi/migrations-fips | | Customer-managed runners | pulumi/customer-managed-workflow-agent-fips | Helping customers run Pulumi in environments that require FIPS made us more demanding about what we ship to everyone who runs our images. Every dependency in an image you run yourself is something we have to maintain and something a customer might have to explain in a security review. We want to give you fewer of those to account for and get fixes into your hands sooner. That’s the standard we’ll keep pushing for across our images.
LOCALHOSTOPEN SSLCURL
pulumipulumi
BUSINESS MARKETING AND EMPLOYMENT

Trigger Pulumi Agents from Infrastructure Events

Pulumi Agents can start work automatically in response to a Pulumi event or a webhook. With a trigger, you can give an agent a recurring assignment and choose when it should start. For events in Pulumi Cloud, that choice can be as specific as a failed update on a single stack. A failed deployment is one use for a trigger. The agent can read the failed update, identify the affected resource, and post a diagnosis in Slack. That puts the error and a suggested next step in the deployment channel for the team to review. ## A trigger for failed deployments The example below defines an agent and a trigger in TypeScript. The trigger selects failed updates on checkout/prod and starts an investigation. The agent has read access to the stack’s update history and instructions to report what failed and what to check next. The agent’s instructions describe what you want to learn from each failure. Its roleId determines what it can read. Here, agentRoleId is a configuration key that holds the ID of an existing Pulumi Cloud role with stack:read on checkout/prod. The configuration steps below show how to look up that ID and supply it through Pulumi ESC. typescript import * as pulumi from "@pulumi/pulumi"; import * as service from "@pulumi/pulumiservice"; const config = new pulumi.Config(); const orgName = pulumi.getOrganization(); const agent = new service.api.agents.Definition("troubleshooter", { orgName, name: "deployment-troubleshooter", displayName: "Deployment Troubleshooter", roleId: config.require("agentRoleId"), customInstructions: [ "Read the failed update and quote the error that explains the failure.", "Identify the affected resource if the update names one.", "Suggest what to check next and explain why.", ].join(" "), }); ## Start a task when an update fails Add the automation to the same program. Its trigger matches three details that Pulumi Cloud records for a stack operation: the stack, the operation, and the result. When an update to checkout/prod finishes with a failed result, Pulumi starts a task for the agent referenced by agent.definitionID. typescript new service.api.AgentAutomationV2("failed-update", { orgName, name: "Investigate failed production updates", kind: "triggered", trigger: { type: "stack_operation", stacks: [{ routingProject: "checkout", name: "prod" }], operations: ["update"], results: ["failed"], quietPeriodSeconds: 30, }, task: { agentDefinitionId: agent.definitionID, toolExecutionMode: "cloud", message: { type: "user_message", content: "Investigate this failed update." }, }, notificationTargets: [ { type: "slack", channelID: config.require("slackChannelId") }, ], }); The first failure starts the task immediately. The 30-second window lets subsequent matching events join the investigation. The agent reads the update using its Pulumi Cloud role, and Pulumi delivers the findings to the Slack channel in notificationTargets. ## Configure and deploy Create a TypeScript project named deployment-agents with pulumi new typescript --name deployment-agents, and put both code snippets above in its index.ts. Select a stack for that project in the same Pulumi Cloud organization as checkout/prod. 1. Find the role ID. With a Pulumi account that can list roles in your organization, run the command below. Replace YOUR_ORG with the organization name. The output lists each role’s name and ID. Copy the ID of the role you’ve granted read access to checkout/prod. bash pulumi api /api/orgs/YOUR_ORG/roles --method GET -F uxPurpose=role | jq -r '.roles[] | [.name, .id] | @tsv' 2. Connect the Slack channel. Have a workspace admin install the Pulumi Slack app. In Pulumi Cloud, link the account you’ll use to deploy the automation to your Slack identity under Account settings > Pulumi Agents. This lets Pulumi find channels in your workspace. Invite the app to your deployment channel and copy the channel ID from its details in Slack. 3. Supply both IDs through ESC. Add the following to an ESC environment named deployment-agents/settings. The deployment-agents prefix on each key matches the project name in Pulumi.yaml. yaml values: pulumiConfig: deployment-agents:agentRoleId: "<Pulumi Cloud role ID>" deployment-agents:slackChannelId: "<Slack channel ID>" From the deployment-agents project, import the environment into the selected stack and deploy: bash npm install @pulumi/pulumiservice@1.7.0 pulumi config env add deployment-agents/settings pulumi up pulumi up creates the Deployment Troubleshooter agent and the Investigate failed production updates automation. The automation begins watching checkout/prod. ## What the team sees in Slack In a live test on a disposable stack, the check-release-manifest resource ran a local command to verify that release-manifest.json existed. The file was absent, so the update failed. Pulumi posted the automation’s name in the deployment channel as soon as the investigation started. The agent then replied in the Slack thread with its diagnosis. check-release-manifest had failed with Missing release-manifest.json. The agent suggested checking whether the build had generated the file and whether the command was looking in the right directory. Selecting Continue in Pulumi opened the full investigation for that update.
PULUMI
pulumipulumi
ARTIFICIAL INTELLIGENCE

Bring your own model to Pulumi Agents

You can now run Pulumi Agents on the models your team already uses. Connect your organization’s model provider account, and your provider bills you directly for the requests your agents make. You can use that connection across your organization or give an individual agent its own choice of model. Pulumi Agents supports OpenAI, Amazon Bedrock, Anthropic, Google (for Gemini models), Azure Foundry, and compatible endpoints. To connect one, open Agent Settings in Pulumi Cloud. Under Model provider, choose Add model provider, select your provider, and enter a name and connection details. Select Save to test the connection. Once you’ve named a connection, you can use it in code. Here, modelProvider: "openai-platform" tells the infrastructure review agent to use the model your team configured on that connection. typescript import * as pulumi from "@pulumi/pulumi"; import * as pulumiservice from "@pulumi/pulumiservice"; new pulumiservice.api.agents.Definition("infra-review", { orgName: pulumi.getOrganization(), name: "infra-review", displayName: "Infrastructure Review", customInstructions: "Review proposed infrastructure changes and summarize their impact.", modelProvider: "openai-platform", }); In the console, choose Set as default to use a connection for new tasks that follow your organization’s default. To choose one for an individual agent, use the Model setting when you create or edit it. The model provider guide has the connection details for each provider.
AMAZON BEDROCKGOOGLE
pulumipulumi
CYBERSECURITY AND PRIVACY

Least privilege by default: what's new in Pulumi Cloud RBAC

Access control in Pulumi Cloud now starts from least privilege. Every organization gets three new built-in roles, you can share a single stack or environment with a teammate, and you can create service principals to give your automated workloads their own identity. ## Why change how access works? Protecting your infrastructure is central to how we build Pulumi Cloud, and access control has to keep up with how teams work. More people outside the platform team touch infrastructure, and a growing share of changes comes from pipelines and coding agents, which need to be governed as carefully as the people they work for. Security works best when the secure choice is also the convenient one. Giving people, agents, and automation the access they need, and nothing more, shouldn’t take extra work. The changes below make the narrow, deliberate choice the default one. ## Three new built-in roles Every organization now has three new built-in roles, alongside Admin and Billing Manager. Each one includes everything the one before it allows: | Role | What members can do | | ---------- | --------------------------------------------------------------------------------------------------------------- | | Reader | See the organization’s stacks, environments, and cloud accounts. | | Builder | Everything a Reader can, plus create stacks, environments, and cloud accounts, and manage the ones they create. | | Maintainer | Everything a Builder can, plus change every stack, environment, and cloud account in the organization. | One of them is the organization’s default role, the role members have unless an admin assigns them a different one. New organizations start on Builder: people create and manage their own infrastructure, and get access to everyone else’s when someone decides they should. Existing organizations were moved to a built-in role that matches what their members could already do, or kept their existing default, so nobody gained or lost access. When an admin changes the default role, every member who follows it moves to the new role, and members who were assigned a role keep theirs. ## Share one stack with one person Giving one person access to one thing now takes a few seconds. Every stack, environment, and cloud account has Access settings: select Add Principal, pick a teammate, pick what they can do, and you’re done. Teams are granted access in the same place, so a single list shows everyone who has been granted access to that stack, environment, or cloud account. Every organization also has an Everyone team that always contains every member, for the things the whole organization should see. ## Service principals: an identity for automation A service principal is an identity for work that isn’t done by a person. You create it, name it, and give it access the same way you would a teammate: - It starts with nothing. A service principal doesn’t follow the organization’s default role. It has only the roles and access you give it, so it can be as narrow as a single stack and the environments that stack imports. - You grant access where you already do. Add a service principal from the same Access settings you use to share a stack, environment, or cloud account with a teammate, or assign it a role for the whole organization. - It can’t be used to get around your own access. Admins, Maintainers, and Builders can create service principals, and can only give one the roles they could grant themselves. - It shows up by name. In the audit logs, a service principal is the actor of everything it does, so you can tell which automation made a change. Pulumi Cloud also creates service principals where it runs work for you: each Pulumi Delivery pipeline that doesn’t name its own identity and each custom agent gets one of its own. ## Pipelines run as who you choose We recently introduced Pulumi Delivery, which lets you write your release pipeline as a Pulumi program. Every Delivery pipeline runs as one identity. The person who starts a run, approves a gate, or pushes a commit doesn’t lend the run their own access. By default, Delivery generates a service principal for each pipeline and gives it access to the stacks the pipeline works with and nothing else. To decide the access yourself, name a service principal you created, or a team, in the pipeline program: typescript const pipeline = new delivery.Pipeline("shop", { servicePrincipal: { userId: "service-principal:0b6f1c2e-5d3a-4f7b-9c1d-2e8a7b6c5d4f" }, }); flowchart LR A["git push"] --> R["Delivery run"] B["A person starts<br/>or promotes a run"] --> R R -->|runs as| SP["Service principal<br/>Delivery shop prod"] SP --> S["Access to the stacks<br/>the pipeline deploys"] SP --> E["Access to the<br/>environments you grant"] - Runs are predictable. A run that works when you start it also works when a push starts it overnight, because it’s the same identity both times. - The access is yours to decide. The pipeline can reach what its service principal was given and nothing else. - It’s visible. The pipeline’s settings list the service principals and teams it has been registered with, and who added each one. Pulumi Deployments works the same way. A stack’s deployment settings now have a Run as setting: select a service principal, or a team, and every deployment of that stack runs with that identity’s access, whether it’s started by a person, a git push, or a schedule. ## Restricted by default for new organizations New organizations are created in the restricted permission mode, where automation gets only the access you explicitly gave it. Every stack’s deployments run as a service principal or a team, and a team access token gets its team’s access and nothing more. Existing organizations keep working the way they always have, with automation that can get broader access than you gave it, until an admin switches them to restricted. The console spells out what the switch changes before you confirm. ## Manage it as code If you manage your organization with the Pulumi Service provider, version 1.7.0 covers the new model: you can set the default role, assign the built-in roles, and give a member access to a single stack, environment, or cloud account: yaml resources: aliceOnDev: type: pulumiservice:OrganizationMemberEntityAccess properties: organizationName: my-org username: alice entityType: stack entityName: my-project/dev permission: stack-write ## What changes for existing organizations? Nothing changes until you choose to change it. Your members kept their access when the built-in roles arrived, your custom roles and teams work as before, and your deployments keep running the way they do today. To move an existing organization to least privilege, take these steps in order: 1. Pick a default role. For most organizations, that’s Builder. 2. Give each stack that uses Pulumi Deployments a service principal or a team with access to what that stack needs. 3. Switch to the restricted permission mode once each of those stacks has one. The permission modes documentation has a short checklist, and you can switch back if something was missed. ## Next steps Everything here is available today. The documentation notes where a feature depends on your edition. - Read how default roles and access on individual stacks work. - Create a service principal, then name it in a Delivery pipeline or select it under Run as in a stack’s deployment settings. - Share feedback in the Pulumi Community Slack or on GitHub.
pulumipulumi
INDUSTRY AND MANUFACTURING

Everything after code, as code

Introducing Pulumi Delivery and Pulumi Agents: agentic code to production, and back again. At Pulumi, we like code. A lot. And we aren’t the only ones: agents like it too. This year, the share of infrastructure operations on Pulumi done by agents went from zero in January to over 40% in October. Anything expressed as code (infrastructure, policy, configuration) is something an agent can work on. Today we’re extending that to everything after the merge with two launches: Pulumi Delivery, which lets you and your agents write delivery pipelines as code, and Pulumi Agents, customizable agents that watch your running systems and act when something goes wrong. Together, they take agentic code to production, and back again. I honestly can’t remember a launch since Pulumi 1.0 that our customers and team have been this excited about. TypeSafe AI bet on Pulumi to scale Jev, their decision model, to over a trillion tokens per day using the engineering practices they already had. ## What happens after the merge Frontier labs have made huge advances in agentic coding, code review, and everything up to the merge. Claude Code, Codex, and friends now write and test a growing share of the code we ship, and the labs felt it first. Anthropic’s monorepo went from about 2,500 merges a day in May to over 30,000 by September. At OpenAI, where one engineer now has several changes ready for CI at once, Git reliability at times fell below 90% under the load. Both rebuilt source control to keep up. And then it all stops at the pull request. Everything after the merge (provisioning, configuration, secrets, policy, and delivery) still runs on scripts, tickets, and waiting. Today’s SDLC was designed for human hands working at human speed, and it has become the bottleneck. An agentic SDLC needs agentic delivery, too. We set out to answer a few questions. How does code get to production, and which gates does it pass through? Which of those gates need a human, and which can an agent handle? When something breaks in production, who responds, and how does the fix get back into the code? Pulumi Delivery and Pulumi Agents are our answers. Today’s SDLC was designed for human hands working at human speed, and it has become the bottleneck. An agentic SDLC needs agentic delivery, too. ## Built on infrastructure as code These capabilities take the Pulumi platform beyond infrastructure, but they’re built on what we’ve learned there. Since 2017, our open source infrastructure as code has let you express infrastructure in whatever language your team already knows, and today thousands of teams use Pulumi every month to turn the cloud into a competitive edge. TypeSafe AI bet on Pulumi to scale Jev, their decision model, to over a trillion tokens per day using the engineering practices they already had. That bet turned out to be as good for agents as it is for people. Models have learned from billions of lines of TypeScript, Python, HCL, and Go, and from almost nothing about cloud consoles and tickets, and every frontier lab benchmarks them relentlessly on code. When you put infrastructure in a language the model already knows, it becomes a coding problem, which agents are good at, and Pulumi carries out the resulting intent. Research backs this up: across 17 models, agents succeeded up to 20% more often when they acted by writing code than by emitting JSON or text. We’ve watched this play out on our own platform, where the share of infrastructure operations done by agents climbed from 15% in April to 30% in July and over 40% in October. Agents are about to do the majority of infrastructure updates, and they can do so safely thanks to platform guardrails. IaC is itself a guardrail: every change is a code diff with a deterministic plan that you can review before anything happens. On top of that, agents get scoped credentials and secrets, and we continuously enforce policy across any cloud or compliance framework. We run this way ourselves: 85% of the changes to Pulumi’s own core service are now written or reviewed by our engineering agents. We are driving hard toward 100%. Working with customers, we’ve also seen where everything around IaC falls short. Delivery pipelines are still hodgepodges of scripts, manual configurations and approvals, YAML files, and homegrown systems. These approaches are agent-hostile, because we as an industry built them assuming humans clicking and copy-pasting on the critical path was okay. And once code is live, operations still runs on pages, dashboards, and manual toil. ## Pulumi Delivery: agentic delivery as code Pulumi Delivery puts your entire release process in code: stages, promotion and rollout policies, gates, jobs, and everything else between merge and production. As with infrastructure as code, you write it in TypeScript, Python, HCL, Go, C#, Java, or YAML, which is great for humans as well as agents. Software engineering suddenly applies, so you can test, share, and reuse pipeline definitions. Because Delivery extends Pulumi’s core model, pipelines share its type system, policy engine, stack and resource dependencies, secrets, and state. And it runs what you already have, including Pulumi, Terraform, OpenTofu, Ansible, and open-ended jobs. It works alongside the CI you already use for build and test, picking up at the merge. Tell your agent to ship every merge through staging and into production, letting Jev decide when a human needs to approve, and watch it go: Here’s the pipeline the agent wrote, minus the canary and prod-eu stages, in your language of choice: typescript import * as delivery from "@pulumi/delivery"; // Run the pipeline on every push to main. const repo = new delivery.GitHubSource("repo", { repository: "acme/shop", branch: "main", trigger: true, }); const pipeline = new delivery.Pipeline("shop"); // Jev answers one question about each release headed to prod. const jev = { kind: "decision", questions: { risky: { instructions: "Is this deployment too risky to promote on its own?", maximumRisk: 0.1, }, }, }; const dev = new delivery.Stage("dev", { pipeline }); const staging = new delivery.Stage("staging", { pipeline, from: [dev] }); const prod = new delivery.Stage("prod", { pipeline, from: [staging], // Promote when Jev clears the release or a person approves it. when: { kind: "any", rules: [jev, { kind: "approval" }] }, }); for (const [env, stage] of Object.entries({ dev, staging, prod })) { new delivery.Stacks(env, { stage, stacks: { network: { stack: `shop-network/${env}`, source: repo, directory: "network", }, app: { stack: `shop-app/${env}`, source: repo, directory: "app", }, }, }); } python import pulumi_delivery as delivery # Run the pipeline on every push to main. repo = delivery.GitHubSource("repo", repository="acme/shop", branch="main", trigger=True) pipeline = delivery.Pipeline("shop") # Jev answers one question about each release headed to prod. jev = { "kind": "decision", "questions": { "risky": { "instructions": "Is this deployment too risky to promote on its own?", "maximum_risk": 0.1, }, }, } dev = delivery.Stage("dev", pipeline=pipeline) staging = delivery.Stage("staging", pipeline=pipeline, from_=[dev]) prod = delivery.Stage("prod", pipeline=pipeline, from_=[staging], # Promote when Jev clears the release or a person approves it. when={"kind": "any", "rules": [jev, {"kind": "approval"}]}) for env, stage in {"dev": dev, "staging": staging, "prod": prod}.items(): delivery.Stacks(env, stage=stage, stacks={ "network": { "stack": f"shop-network/{env}", "source": repo, "directory": "network", }, "app": { "stack": f"shop-app/{env}", "source": repo, "directory": "app", }, }) hcl # Run the pipeline on every push to main. resource "delivery_git_hub_source" "repo" { repository = "acme/shop" branch = "main" trigger = true } resource "delivery_pipeline" "shop" {} resource "delivery_stage" "dev" { pipeline = delivery_pipeline.shop } resource "delivery_stage" "staging" { pipeline = delivery_pipeline.shop from = [delivery_stage.dev] } resource "delivery_stage" "prod" { pipeline = delivery_pipeline.shop from = [delivery_stage.staging] # Promote when Jev clears the release or a person approves it. when = { kind = "any" rules = [ { kind = "decision" questions = { risky = { instructions = "Is this deployment too risky to promote on its own?" maximum_risk = 0.1 } } }, { kind = "approval" }, ] } } resource "delivery_stacks" "env" { for_each = { dev = delivery_stage.dev staging = delivery_stage.staging prod = delivery_stage.prod } stage = each.value stacks = { network = { stack = "shop-network/${each.key}" source = delivery_git_hub_source.repo directory = "network" } app = { stack = "shop-app/${each.key}" source = delivery_git_hub_source.repo directory = "app" } } } go package main import ( "github.com/pulumi/pulumi-delivery/sdk/go/delivery" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Jev answers one question about each release headed to prod. const risky = "Is this deployment too risky to promote on its own?" func main() { pulumi.Run(func(ctx *pulumi.Context) error { // Run the pipeline on every push to main. repo, err := delivery.NewGitHubSource(ctx, "repo", &delivery.GitHubSourceArgs{ Repository: pulumi.String("acme/shop"), Branch: pulumi.String("main"), Trigger: pulumi.Any(true), }) if err != nil { return err } pipeline, err := delivery.NewPipeline(ctx, "shop", nil) if err != nil { return err } dev, err := delivery.NewStage(ctx, "dev", &delivery.StageArgs{ Pipeline: pipeline, }) if err != nil { return err } staging, err := delivery.NewStage(ctx, "staging", &delivery.StageArgs{ Pipeline: pipeline, From: delivery.StageArray{dev}, }) if err != nil { return err } prod, err := delivery.NewStage(ctx, "prod", &delivery.StageArgs{ Pipeline: pipeline, From: delivery.StageArray{staging}, // Promote when Jev clears the release or a person approves it. When: &delivery.RuleArgs{ Kind: pulumi.String("any"), Rules: delivery.RuleArray{ &delivery.RuleArgs{ Kind: pulumi.String("decision"), Questions: delivery.DecisionQuestionMap{ "risky": &delivery.DecisionQuestionArgs{ Instructions: pulumi.String(risky), MaximumRisk: pulumi.Float64(0.1), }, }, }, &delivery.RuleArgs{Kind: pulumi.String("approval")}, }, }, }) if err != nil { return err } for _, s := range []struct { env string stage *delivery.Stage }{{"dev", dev}, {"staging", staging}, {"prod", prod}} { _, err := delivery.NewStacks(ctx, s.env, &delivery.StacksArgs{ Stage: s.stage, Stacks: delivery.StacksEntryMap{ "network": &delivery.StacksEntryArgs{ Stack: pulumi.String("shop-network/" + s.env), Source: repo, Directory: pulumi.String("network"), }, "app": &delivery.StacksEntryArgs{ Stack: pulumi.String("shop-app/" + s.env), Source: repo, Directory: pulumi.String("app"), }, }, }) if err != nil { return err } } return nil }) } csharp using System.Collections.Generic; using Pulumi; using Pulumi.Delivery.Delivery.Inputs; using Delivery = Pulumi.Delivery.Delivery; return await Deployment.RunAsync(() => { // Run the pipeline on every push to main. var repo = new Delivery.GitHubSource("repo", new() { Repository = "acme/shop", Branch = "main", Trigger = true, }); var pipeline = new Delivery.Pipeline("shop"); // Jev answers one question about each release headed to prod. const string risky = "Is this deployment too risky to promote on its own?"; var jev = new RuleArgs { Kind = "decision", Questions = { { "risky", new DecisionQuestionArgs { Instructions = risky, MaximumRisk = 0.1, } }, }, }; var dev = new Delivery.Stage("dev", new() { Pipeline = pipeline }); var staging = new Delivery.Stage("staging", new() { Pipeline = pipeline, From = { dev }, }); var prod = new Delivery.Stage("prod", new() { Pipeline = pipeline, From = { staging }, // Promote when Jev clears the release or a person approves it. When = new RuleArgs { Kind = "any", Rules = { jev, new RuleArgs { Kind = "approval" } }, }, }); var stages = new Dictionary<string, Delivery.Stage> { ["dev"] = dev, ["staging"] = staging, ["prod"] = prod, }; foreach (var (env, stage) in stages) { new Delivery.Stacks(env, new() { Stage = stage, Stacks = { { "network", new StacksEntryArgs { Stack = $"shop-network/{env}", Source = repo, Directory = "network", } }, { "app", new StacksEntryArgs { Stack = $"shop-app/{env}", Source = repo, Directory = "app", } }, }, }); } }); java package myproject; import com.pulumi.Pulumi; import com.pulumi.delivery.delivery.*; import com.pulumi.delivery.delivery.inputs.*; import java.util.List; import java.util.Map; public class App { // Jev answers one question about each release headed to prod. static final String RISKY = "Is this deployment too risky to promote on its own?"; public static void main(String[] args) { Pulumi.run(ctx -> { // Run the pipeline on every push to main. var repo = new GitHubSource("repo", GitHubSourceArgs.builder() .repository("acme/shop") .branch("main") .trigger(true) .build()); var pipeline = new Pipeline("shop"); var jev = RuleArgs.builder() .kind("decision") .questions(Map.of("risky", DecisionQuestionArgs.builder() .instructions(RISKY) .maximumRisk(0.1) .build())) .build(); var dev = new Stage("dev", StageArgs.builder() .pipeline(pipeline) .build()); var staging = new Stage("staging", StageArgs.builder() .pipeline(pipeline) .from(dev) .build()); var prod = new Stage("prod", StageArgs.builder() .pipeline(pipeline) .from(staging) // Promote when Jev clears the release or a person approves it. .when(RuleArgs.builder() .kind("any") .rules(jev, RuleArgs.builder().kind("approval").build()) .build()) .build()); var stages = List.of( Map.entry("dev", dev), Map.entry("staging", staging), Map.entry("prod", prod)); for (var s : stages) { var env = s.getKey(); new Stacks(env, StacksArgs.builder() .stage(s.getValue()) .stacks(Map.of( "network", StacksEntryArgs.builder() .stack("shop-network/" + env) .source(repo) .directory("network") .build(), "app", StacksEntryArgs.builder() .stack("shop-app/" + env) .source(repo) .directory("app") .build())) .build()); } }); } } yaml name: shop-delivery runtime: yaml resources: # Run the pipeline on every push to main. repo: type: delivery:GitHubSource properties: repository: acme/shop branch: main trigger: true pipeline: type: delivery:Pipeline name: shop dev: type: delivery:Stage properties: pipeline: ${pipeline} staging: type: delivery:Stage properties: pipeline: ${pipeline} from: ["${dev}"] prod: type: delivery:Stage properties: pipeline: ${pipeline} from: ["${staging}"] # Promote when Jev clears the release or a person approves it. when: kind: any rules: - kind: decision questions: risky: instructions: Is this deployment too risky to promote on its own? maximumRisk: 0.1 - kind: approval devStacks: type: delivery:Stacks name: dev properties: stage: ${dev} stacks: network: stack: shop-network/dev source: ${repo} directory: network app: stack: shop-app/dev source: ${repo} directory: app stagingStacks: type: delivery:Stacks name: staging properties: stage: ${staging} stacks: network: stack: shop-network/staging source: ${repo} directory: network app: stack: shop-app/staging source: ${repo} directory: app prodStacks: type: delivery:Stacks name: prod properties: stage: ${prod} stacks: network: stack: shop-network/prod source: ${repo} directory: network app: stack: shop-app/prod source: ${repo} directory: app From there, Pulumi Cloud shows you where every release is, or was, at any given time, so you always know what’s waiting on whom: Your app and its network ship together through one pipeline, whether a person or an agent wrote the change. ## Pulumi Agents: from production back to code Delivery gets code to production. But what happens when alarms start firing? That’s where Pulumi Agents comes in. Provision engineering and infrastructure agents that monitor your running systems, react to events from PagerDuty, Datadog, Sentry, and Honeycomb, or run on a schedule. Start with the agents Pulumi provides for incident investigation, drift, cost, upgrades, and security remediation, or define your own in code, with your own prompts, skills, integrations, and triggers. Bring any agent you like: Neo, our infrastructure agent, or Claude Code, Codex, and OpenCode, on Pulumi’s models or your own keys. Every agent gets its own identity, a least-privilege role, and short-lived credentials from Pulumi ESC. Agents never change production directly. Any change an agent wants to make arrives as a pull request with a deterministic plan, checked against the same policies as your engineers’ changes. Here, a Datadog memory alert on the checkout service dispatches an incident investigator, which traces the cause and opens a pull request to raise the task’s memory, without deploying anything: Every agent gets its own identity and a least-privilege role. Agents never change production directly: their changes arrive as pull requests, checked against the same policies as your engineers'. ## Closing the loop Put Delivery and Agents together, and you get the whole loop. Gates in your pipelines can ask an agent, or a decision model like Jev, to score a deployment’s risk. Low-risk changes promote themselves, region by region, with health checks at every stage. Risky ones wait for a person, who can approve right from Slack. Once in production, agents are dispatched by the signals your systems already emit, and their fixes come back through the pipeline, gated like every other change. Engineers and agents follow one path under one set of rules, and you set the autonomy slider wherever you’re comfortable, from human in charge, to human in the loop, to full autonomy. No matter what, deterministic guardrails and audit trails are kept. ## One platform for the agentic SDLC All of this is built on the same platform as our core IaC, powered by one context graph, data model, and API across your applications and infrastructure. Pulumi knows which deploy changed which resources, what’s running where, and what depends on what, so an agent investigating an alert starts with that context instead of guessing. And because it’s one system, the same identity, RBAC, policies, and audit trail apply to the new products and the existing ones alike. We think this is what the agentic SDLC looks like after the merge. Pulumi Delivery and Pulumi Agents are available today in public preview in every edition of Pulumi Cloud, including Free. For the full tour of each product, read the companion posts: Read the blog: Introducing Pulumi Delivery → Read the blog: Introducing Pulumi Agents → You can get started with Delivery or Agents now, or see them in action on the Pulumi Delivery and Pulumi Agents product pages. If we can help with agents at your company, please get in touch. We’re only just getting started, and we can’t wait to hear what you think. Happy clouding, -Joe
PULUMITYPE SAFE AI