← All insightsAutomation

Automating Pulumi from scratch

CodeWizard Academy · 25 November 2025 · 3 min read · Intermediate

Anything you do to Pulumi twice should be automated. This walks the path from a manual install to a repeatable, pipeline-driven setup.

1. Install it reproducibly

bash
curl -fsSL https://get.pulumi.com | sh
pulumi version
pulumi new aws-typescript

2. Describe the desired state

An S3 bucket defined in TypeScript.

typescript
import * as aws from "@pulumi/aws";

const assets = new aws.s3.BucketV2("assets", {
  bucket: "acme-assets",
  tags: { Environment: "prod" },
});

export const bucketName = assets.bucket;

3. Run it from CI

Preview and deploy with the Pulumi GitHub Action.

yaml
- uses: pulumi/actions@v6
  with: { command: up, stack-name: acme/prod }
  env: { PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} }

Want senior help putting Pulumi to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult