1. Home
  2. /
  3. Pulumi-automation
  4. /
  5. Simple Pulumi Automation API Script (Python)

Simple Pulumi Automation API Script (Python) - Pulumi-automation Typing CST Test

Loading…

Simple Pulumi Automation API Script (Python) — Pulumi-automation Code

A simple Pulumi Automation API script in Python to create an S3 bucket.

# pulumi/demo/automation_api.py
import pulumi
from pulumi_automation import LocalWorkspace

stack = LocalWorkspace.create_stack(stack_name='dev', project_name='demo_project')

bucket = pulumi.aws.s3.Bucket('my-bucket')

stack.up()

Pulumi-automation Language Guide

Pulumi Automation API enables programmatic Infrastructure as Code (IaC) by allowing developers to define, deploy, and manage cloud infrastructure directly from code in languages like TypeScript, Python, Go, and C#. It provides full automation capabilities for CI/CD and custom tooling.

Primary Use Cases

  • ▸Programmatic provisioning of cloud infrastructure
  • ▸Automating CI/CD pipelines for infrastructure changes
  • ▸Embedding infrastructure logic into custom applications
  • ▸Testing and validating infrastructure programmatically
  • ▸Multi-cloud infrastructure orchestration from code

Notable Features

  • ▸Use familiar programming languages (TypeScript, Python, Go, C#) for IaC
  • ▸Full automation API for programmatic infrastructure management
  • ▸Supports multiple cloud providers and Kubernetes
  • ▸Preview, update, and destroy infrastructure via code
  • ▸Integration with CI/CD pipelines and testing frameworks

Origin & Creator

Created by Pulumi, Inc. to extend Pulumi’s cloud infrastructure platform for programmable automation of deployments within custom applications and CI/CD pipelines.

Industrial Note

Pulumi Automation is often used by platform teams and DevOps engineers who need to integrate IaC tightly with CI/CD pipelines, testing frameworks, and custom automation tools, allowing infrastructure to be treated as a software library.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher