Back to articles
Pulumi Has a Free IaC Platform That Lets You Write Infrastructure in TypeScript
How-ToDevOps

Pulumi Has a Free IaC Platform That Lets You Write Infrastructure in TypeScript

via Dev.to DevOpsAlex Spinov

Terraform forces you to learn HCL. Pulumi lets you define infrastructure in TypeScript, Python, Go, C#, or Java — with real loops, conditions, and abstractions. HCL vs TypeScript # Terraform — custom language, limited abstractions resource "aws_s3_bucket" "website" { bucket = "my-website-bucket" } resource "aws_s3_bucket_website_configuration" "website" { bucket = aws_s3_bucket . website . id index_document { suffix = "index.html" } } // Pulumi — real TypeScript with full IDE support import * as aws from " @pulumi/aws " ; const bucket = new aws . s3 . Bucket ( " website " , { website : { indexDocument : " index.html " }, }); export const url = bucket . websiteEndpoint ; Same result. But TypeScript gives you: autocomplete, type checking, refactoring tools, loops, functions, npm packages. Setup npm install -g @pulumi/pulumi pulumi new aws-typescript # Creates project, installs deps, configures state Real Programming Power Loops // Create 3 servers with Pulumi const servers = [ 1 , 2 , 3

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
6 views

Related Articles