
Pulumi Has a Free API: Infrastructure as Code in Real Programming Languages
Why Pulumi Pulumi lets you define infrastructure in TypeScript, Python, Go, C#, or Java — real languages with real IDEs, real testing, and real package managers. No HCL, no YAML. Install brew install pulumi Create AWS Resources in TypeScript import * as pulumi from ' @pulumi/pulumi ' ; import * as aws from ' @pulumi/aws ' ; const bucket = new aws . s3 . Bucket ( ' my-bucket ' , { website : { indexDocument : ' index.html ' , }, }); const instance = new aws . ec2 . Instance ( ' web ' , { instanceType : ' t3.micro ' , ami : ' ami-0c55b159cbfafe1f0 ' , tags : { Name : ' web-server ' }, }); export const bucketUrl = bucket . websiteEndpoint ; export const publicIp = instance . publicIp ; pulumi up # Deploy pulumi preview # Preview changes pulumi destroy # Tear down Kubernetes in Python import pulumi import pulumi_kubernetes as k8s app = k8s . apps . v1 . Deployment ( ' myapp ' , spec = k8s . apps . v1 . DeploymentSpecArgs ( replicas = 3 , selector = k8s . meta . v1 . LabelSelectorArgs ( matc
Continue reading on Dev.to DevOps
Opens in a new tab

