Skip to content

Instantly share code, notes, and snippets.

@EronWright
EronWright / lively-sprouting-goblet.md
Last active November 25, 2025 23:40
Plan: Create v2 Maintenance Branch for pulumi-azure-native

Plan: Create v2 Maintenance Branch for pulumi-azure-native

Overview

Create a v2 branch to enable patching v2.x releases while master continues with v3.x development. The last v2 release was v2.90.0 (commit 9ab68b7632627d5c5a7ad2d1d27dac99712fe429, March 27, 2025).

Key Principle: Minimize differences between v2 and v3 workflows. Both branches use azure-native's custom workflows (not ci-mgmt). A future ci-mgmt migration can be done for both branches together.

Workflow Strategy: Minimal Diff from Master

@EronWright
EronWright / .mise.toml
Created November 14, 2025 17:15
mise configuration for pulumi-azure-native
# mise configuration for pulumi-azure-native
# Auto-generated from Makefile and CI scripts
[tools]
# Core Languages (versions from .github/actions/install/action.yml)
go = "1.24.7" # From provider/go.mod
node = "20" # From CI: actions/setup-node@v4
python = "3.9" # From CI: actions/setup-python@v5
java = "temurin-11" # From CI: actions/setup-java@v4
dotnet = "8" # From CI: actions/setup-dotnet@v4
@EronWright
EronWright / interactive-stacks-demo-plan.md
Last active October 31, 2025 14:41
1-Minute Interactive Stacks Demo Plan - Pulumi Intent MCP Server

1-Minute Interactive Stacks Demo Plan

Setup: Claude Code (VS Code) + Pulumi Cloud Console (side-by-side)

Pre-demo: Have browser at app.pulumi.com/[org] dashboard


Demo Script (70 seconds)

@EronWright
EronWright / pulumi-provider-mcp-server-plan.md
Last active October 28, 2025 00:13
Pulumi Provider MCP Server - Implementation Plan

Pulumi Provider MCP Server - Implementation Plan

Overview

A standalone MCP server that provides direct access to Pulumi provider CRUD operations, bypassing the Pulumi engine. This enables ad-hoc infrastructure management by leveraging existing Pulumi providers through the Model Context Protocol.

Architecture

Session-Based Provider Registry with Explicit Configuration

@EronWright
EronWright / pulumi-mcp-option2.md
Created October 27, 2025 20:36
Pulumi MCP Server - Option 2: Stateless with Eager Persistence (PatchUpdateCheckpoint)

Stateless MCP Server with Eager Persistence - Option 2

Using PatchUpdateCheckpoint for Immediate State Writes

Key Insight

PatchUpdateCheckpoint is what the HTTP backend uses today - it:

  • Takes a full UntypedDeployment (complete snapshot)
  • Writes it immediately to Pulumi Cloud
  • Is idempotent (can retry safely)
  • Requires an active UpdateIdentifier
@EronWright
EronWright / _example.go
Last active July 17, 2025 19:19
Restate.dev "Work Queue" service
package workqueue
import (
restate "github.com/restatedev/sdk-go"
)
// WorkQueueExample is an example workflow that demonstrates how to use the FixedWorkQueue as a blocking queue.
// The workflow enqueues an abstract "work item" to the queue, waits to be scheduled, does some work, and then
// notifies the queue. The "work" in this case is simply waiting for a callback to be invoked.
//
@EronWright
EronWright / application.yaml
Created December 12, 2024 17:17
Argo CD with Pulumi Kubernetes Operator
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kubernetes-py-guestbook
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io/background
spec:
project: default
destination:
@EronWright
EronWright / main.go
Last active July 20, 2024 22:42
Pulumi Go SDK using transforms
package main
import (
"context"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/core/v1"
helmv4 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/helm/v4"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
@EronWright
EronWright / index.ts
Created February 14, 2020 04:28
Pulumi example for GKE Workload Identity
/*
Creates a GCP service account named 'test-workload-identity' to be used
by a GKE workload using a Kubernetes service account named 'default/default'.
*/
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const gcpConfig = new pulumi.Config("gcp");
const projectId = gcpConfig.get("project");
@EronWright
EronWright / ca-certificate.ts
Last active January 28, 2022 15:26
Generate a CA Certificate using Pulumi
/*
Copyright (c) 2020 StreamNative. All rights reserved.
This work is licensed under the terms of the MIT license.
For a copy, see <https://opensource.org/licenses/MIT>.
*/
import * as pulumi from "@pulumi/pulumi";
import * as tls from "@pulumi/tls";