Skip to content

Instantly share code, notes, and snippets.

komalali /
Last active November 9, 2021 02:04
Structured Output from Automation API
import sys
from pulumi import automation as auto
import pulumi_random as random
# This is the pulumi program in "inline function" form
def pulumi_program():
random.RandomString("my_rando_string", length=16, special=True)
def print_id_on_create(evt: auto.EngineEvent):
# Check if it's a ResOutputsEvent. This event is emitted after an operation on a resource has completed.
komalali / Pulumi.yaml
Last active October 5, 2021 06:01 — forked from clstokes/Pulumi.yaml
name: p-secret
runtime: nodejs
description: A minimal TypeScript Pulumi program