
Pulumi Has a Free Automation API You're Not Using
Pulumi's Automation API lets you embed infrastructure-as-code inside your applications. No CLI needed — create, update, and destroy stacks programmatically from TypeScript, Python, or Go. The Free APIs You're Missing 1. Automation API — Programmatic Infrastructure import { LocalWorkspace } from " @pulumi/pulumi/automation " ; async function deployInfra () { const stack = await LocalWorkspace . createOrSelectStack ({ stackName : " production " , projectName : " my-app " , program : async () => { const bucket = new aws . s3 . Bucket ( " my-bucket " , { website : { indexDocument : " index.html " }, }); return { bucketUrl : bucket . websiteEndpoint }; }, }); await stack . setConfig ( " aws:region " , { value : " us-east-1 " }); const result = await stack . up ({ onOutput : console . log }); console . log ( " URL: " , result . outputs . bucketUrl . value ); } Deploy infrastructure from an Express route, a Lambda function, or a CLI tool. No shell exec needed. 2. Stack References — Cross-Stac
Continue reading on Dev.to DevOps
Opens in a new tab

