Infrastructure as code in real languages - TypeScript, Python, Go and C# - with a state backend. This walkthrough covers the mental model and the configuration you will actually touch.
Pulumi lets you define cloud infrastructure using general-purpose languages (TypeScript, Python, Go, C#), bringing loops, functions, tests and IDE support to IaC while keeping a Terraform-like plan/apply model.
The configuration that matters
An S3 bucket defined in 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;Principles to hold onto
- Keep programs declarative; push logic into tested helpers
- Use pulumi config set --secret for encrypted config
- Write unit tests with the language's normal test tools
Everyday commands
pulumi preview
pulumi up
pulumi stack output bucketNameWant 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.