back to home

pulumi / examples

Infrastructure, containers, and serverless apps to AWS, Azure, GCP, and Kubernetes... all deployed with Pulumi

View on GitHub
2,567 stars
892 forks
137 issues
TypeScriptPythonGo

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing pulumi/examples in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/pulumi/examples)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

**Pulumi** is the easiest way to build and deploy infrastructure, for any architecture and on any cloud, using programming languages that you already know and love. Code and ship infrastructure faster with your favorite languages and tools, and embed IaC anywhere with Automation API. Pulumi is open source under the Apache 2.0 license, supports many languages and clouds, and is easy to extend. Table of contents • :rocket: About This Repo • :toolbox: All Pulumi Examples • :clap: Contributors • :busts_in_silhouette: Pulumi Community • :blue_book: Pulumi Developer Resources • :compass: Pulumi Roadmap About the Pulumi Examples Repo This repository contains examples of using Pulumi to build and deploy cloud applications and infrastructure across major programming languages. Each example has a two-part prefix, , to indicate which and it pertains to. For example, could be: • for Amazon Web Services • for Microsoft Azure • for Google Cloud Platform • for Kubernetes See the Pulumi documentation for more details on getting started with Pulumi. Checking out a single example You can checkout only the example(s) you want by using a sparse checkout. The following commands show how checkout only the example. Replace with your example of interest. Don't see an example listed? Try Pulumi AI and use natural-language prompts to generate Pulumi infrastructure-as-code programs in _any_ language. PR Preview Validation When making changes to examples, either individual or in bulk, it's useful to validate those changes before submitting a pull request. This repository includes a target that provides preview-only sanity checks for changed examples in pull requests. This helps ensure examples remain functional without requiring full deployments. The script assumes you have credentials for various providers configured. Examples that fail preview due to missing live resources or complex configuration requirements are expected and don't necessarily indicate problems. All Pulumi examples • AWS • TypeScript • Python • Go • C# • F# • Azure • TypeScript • Python • Go • C# • F# • GCP • TypeScript • Python • Go • C# • Kubernetes • TypeScript • Python • Go • C# • Openstack • OVHCloud • DigitalOcean • Multicloud • F5 • Twilio • Linode • Testing • Automation API AWS TypeScript 🔝 Back to the list Example | Description | --------- | --------- | API Gateway | Deploy a simple REST API that counts the number of times a route has been hit. API Gateway HTTP API with routes | Deploy a HTTP API that invokes a Lambda. API Gateway HTTP API quickstart | Deploy a very simple HTTP API that invokes a Lambda. API Gateway V1 with EventBridge and Lambda | Deploy a REST API that uses EventBridge to target a Lambda function. Includes API Gateway model validation and custom integration-response mapping. API Gateway V2 with EventBridge and Lambda | Deploy an HTTP API that uses EventBridge to target a Lambda function. Apigateway - Auth0 | Deploy a simple REST API protected by Auth0. AppSync | Deploy a basic GraphQL endpoint in AWS AppSync. AssumeRole | Use AssumeRole to create resources. Containers | Provision containers on Fargate. EKS - Dashboard | Deploy an EKS Kubernetes cluster with an EBS-backed StorageClass, then the Kubernetes Dashboard into the cluster. EKS - Hello World | Deploy an EKS Kubernetes cluster with an EBS-backed StorageClass, then a Kubernetes namespace and nginx deployment into the cluster. EKS - Migrate Node Groups | Create an EKS cluster and node group to use for workload migration with zero downtime. Fargate | Build, deploy, and run a Dockerized app using ECS, ECR, and Fargate. Lambda Thumbnailer | Create a video thumbnail extractor using serverless functions. Miniflux | Stand up an RSS Service using Fargate and RDS. Pulumi Webhooks | Create a Pulumi that receives webhook events delivered by Pulumi Cloud, then echos the event to Slack. RDS and Airflow | Deploy a RDS Postgres instance and containerized Airflow. Resources | Create various resources, including , , , and . Ruby on Rails | Create a single EC2 virtual machine instance with a local MySQL database. S3 Lambda | Set up two AWS S3 Buckets and a single Lambda that listens to one and, upon each new object arriving in it, zips it up and copies it to the second bucket. Serverless Application | Deploy a complete serverless C# application using raw resources from . Serverless Datawarehouse | Deploy a serverless data warehouse. Slackbot | Create a simple slackbot that posts a notification to a specific channel any time you're @mentioned anywhere. Stack Reference | Create a "team" EC2 Instance with tags set from upstream stacks. Static Website | Serve a static website using S3, CloudFront, Route53, and Certificate Manager. Step Functions | Use Step Functions with a Lambda function. Thumbnailer | Create a video thumbnail extractor using serverless functions and containers. Twitter | Query Twitter every 2 minutes, store the results in S3, and set up an Athena table and query. Voting App | Create a simple voting app using Redis and Python Flask. Web Server | Deploy an EC2 Virtual machine using TypeScript to run a Python web server. Web Server with Manual Provisioning | Use Pulumi dynamic providers to accomplish post-provisioning configuration steps. LangServe - Hello OpenAI | Deploy a LangServe app that uses OpenAI's on AWS ECS. Use Pulumi AI to build a new example in _any_ language. Python 🔝 Back to the list Example | Description | --------- | --------- | API Gateway HTTP API quickstart | Deploy a very simple HTTP API that invokes a Lambda. API Gateway V2 with EventBridge and Lambda | Deploy an HTTP API that uses EventBridge to target a Lambda function. AppSync | Deploy a basic GraphQL endpoint in AWS AppSync. AssumeRole | Use AssumeRole to create resources. Fargate | Provision a full ECS Fargate cluster running a load-balanced nginx web server. Resources | Create various resources, including , , , and . S3 Folder | Serve a static website on S3. Stack Ref…