Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

Pulumi Tutorial — IaC in a Programming Language

08. 09. 2023 1 min read intermediate

Cloud Intermediate

Pulumi Tutorial — IaC in a Programming Language

PulumiIaCTypeScript 3 min read

Infrastructure as Code v TypeScript, Python nebo Go. Alternativa k Terraform.

Proč Pulumi?

Infrastruktura v reálném programovacím jazyku — loops, conditions, testy, IDE podpora.

Example v TypeScript

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

const bucket = new aws.s3.Bucket("my-bucket", {
    website: { indexDocument: "index.html" }
});

const bucketPolicy = new aws.s3.BucketPolicy("policy", {
    bucket: bucket.id,
    policy: bucket.arn.apply(arn => JSON.stringify({
        Statement: [{
            Effect: "Allow",
            Principal: "*",
            Action: "s3:GetObject",
            Resource: \`\${arn}/*\`
        }]
    }))
});

export const url = bucket.websiteEndpoint;

Summary

Pulumi = Terraform pro vývojáře. Plná síla programovacího jazyka pro infrastrukturu. Zvažte pokud HCL limituje.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.