---
title: "Serverless with Pulumi"
description: "Run applications without managing servers, using functions and managed services. Tutorials, templates, examples, blog posts, and workshops for Serverless with Pulumi."
url: "https://www.pulumi.com/dev/tag/serverless/"
image: "https://www.pulumi.com/assets/og/dev/tag/serverless.png"
---

# Serverless with Pulumi

Run applications without managing servers, using functions and managed services. Tutorials, templates, examples, blog posts, and workshops for Serverless with Pulumi.

## Tutorials

- [Build serverless APIs with Amazon API Gateway](https://www.pulumi.com/dev/tutorials/aws-api-gateway.md): Create and manage API Gateway REST APIs — Lambda, S3, HTTP proxies, auth, and more — with AWSx. — AWS · TypeScript, Python, Go, .NET, Java, YAML
- [Run serverless functions on AWS Lambda](https://www.pulumi.com/dev/tutorials/aws-lambda.md): Build serverless applications with AWS Lambda and Pulumi, including magic functions. — AWS · TypeScript, Python, Go, .NET, Java, YAML
- [Serverless REST API with API Gateway and Lambda](https://www.pulumi.com/dev/tutorials/rest-api.md): Build a serverless app on AWS that serves static content and a dynamic Lambda route using API Gateway. — AWS · JavaScript

## Templates

- [AWS Serverless Application](https://www.pulumi.com/dev/templates/serverless-application/aws.md): Deploy a serverless application on AWS with Pulumi, AWS Lambda, and Amazon API Gateway. — AWS · TypeScript, Python, Go, .NET, YAML, HCL · One-click deploy
- [Azure Serverless Application](https://www.pulumi.com/dev/templates/serverless-application/azure.md): Deploy a serverless application on Azure with Pulumi, Azure Functions, and Azure Blob Storage. — Azure · TypeScript, Python, Go, .NET, YAML, HCL · One-click deploy
- [Cloudflare Serverless Application](https://www.pulumi.com/dev/templates/serverless-application/cloudflare.md): Deploy a serverless application on Cloudflare with Pulumi, Cloudflare Workers, and Workers KV. — Cloudflare · TypeScript, Python, Go, .NET, YAML, HCL · One-click deploy
- [Google Cloud Serverless Application](https://www.pulumi.com/dev/templates/serverless-application/gcp.md): Deploy a serverless application on Google Cloud with Pulumi, Cloud Functions, and Cloud Storage. — Google Cloud · TypeScript, Python, Go, .NET, YAML, HCL · One-click deploy

## Examples

- [Lambda-backed API Gateway](https://www.pulumi.com/dev/examples/aws-py-apigateway-lambda-serverless.md): A minimal AWS Python Pulumi program — AWS · Python · One-click deploy
- [Serverless C# app](https://www.pulumi.com/dev/examples/aws-py-serverless-raw.md): Basic example of a serverless AWS application — AWS · Python · One-click deploy
- [Lambda-backed REST API](https://www.pulumi.com/dev/examples/aws-ts-apigateway-lambda-serverless.md): Creates a serverless application using API Gateway backed by lambda functions — AWS · TypeScript · One-click deploy
- [Serverless datawarehouse](https://www.pulumi.com/dev/examples/aws-ts-serverless-datawarehouse.md): Serverless Analytics on AWS — AWS · TypeScript · One-click deploy
- [Serverless TypeScript app](https://www.pulumi.com/dev/examples/aws-ts-serverless-raw.md): Basic example of a serverless AWS application — AWS · TypeScript · One-click deploy
- [Serverless React + Postgres](https://www.pulumi.com/dev/examples/aws-ts-serverless-react-postgres.md): A React SPA served through CloudFront, a Lambda API behind the same origin, and a private Aurora Serverless v2 (PostgreSQL) database - deployed on top of the aws-ts-landing-zone example. — AWS · TypeScript · One-click deploy
- [Globally distributed serverless URL shortener using Azure Functions and Cosmos DB](https://www.pulumi.com/dev/examples/classic-azure-ts-serverless-url-shortener-global.md): Multi-region deployment of Azure Functions and Cosmos DB with Traffic Manager — Azure · TypeScript · One-click deploy
- [Serverless Cloudflare Worker backed by a D1 database](https://www.pulumi.com/dev/examples/cloudflare-ts-serverless-d1.md): A serverless Cloudflare Worker backed by a D1 SQL database — Cloudflare · TypeScript · One-click deploy
- [Google Cloud Functions in Python and Go](https://www.pulumi.com/dev/examples/gcp-py-serverless-raw.md): Basic example of a serverless Python and Go GCP functions (in Python) — Google Cloud · Python · One-click deploy
- [Google Cloud Functions in Python, Go, and TypeScript deployed with TypeScript](https://www.pulumi.com/dev/examples/gcp-ts-serverless-raw.md): Basic example of a serverless GCP functions in TypeScript, Python and Go — Google Cloud · TypeScript · One-click deploy

## Blog Posts

- [API Gateway to EventBridge with Pulumi](https://www.pulumi.com/blog/api-gateway-to-eventbridge/): Use Pulumi with Amazon API Gateway and EventBridge, Amazon's serverless event bus, to
build scalable and easily maintainable apps and systems.
 — AWS
- [Secure AWS Lambda with IAM ABAC Policies](https://www.pulumi.com/blog/applying-attribute-based-access-controls-to-aws-lambda-functions/): Learn how to implement Attribute-Based Access Control (ABAC) for AWS Lambda using Pulumi. Secure deployments with IAM role tags and policy conditions. — AWS
- [Running Container Images in AWS Lambda](https://www.pulumi.com/blog/aws-lambda-container-support/): Deploy AWS Lambda functions as container images with Pulumi. Compares Lambda ZIP, containers, Fargate, and ECS with 2026 limits, pricing, and runnable code. — AWS
- [Deploy AWS Lambda with Elastic File System using Pulumi](https://www.pulumi.com/blog/aws-lambda-efs/): Learn how to connect AWS Lambda to Amazon EFS using Pulumi. Build serverless apps with persistent storage. Includes Fargate integration and full examples. — AWS
- [Provisioned Concurrency: Avoiding Cold Starts in AWS Lambda](https://www.pulumi.com/blog/aws-lambda-provisioned-concurrency-no-cold-starts/): Learn how to configure AWS Lambda Provisioned Concurrency to minimize cold starts and improve performance with Pulumi. — AWS
- [AWS Serverless Analytics](https://www.pulumi.com/blog/aws-serverless-analytics/): Building a serverless data warehouse on AWS using architecture as code. — AWS
- [Build a Video Thumbnailer on AWS](https://www.pulumi.com/blog/build-a-video-thumbnailer-with-pulumi-using-lambdas-containers-and-infrastructure-on-aws/): Extracting a thumbnail from a video using a combination of Lambdas, containers, and connected data services and infrastructure. — AWS · JavaScript
- [Build your first serverless app using only JavaScript](https://www.pulumi.com/blog/building-your-first-serverless-app-using-only-javascript/): This tutorial shows how to use Pulumi to build a complete serverless application using JavaScript. No YAML needed.
- [Code, Deploy, and Manage a Serverless REST API on AWS](https://www.pulumi.com/blog/code-deploy-and-manage-a-serverless-rest-api-on-aws-with-pulumi/): In this post, we'll use Pulumi to create a simple serverless REST API using JavaScript to define both the infrastructure and application code. — AWS · JavaScript
- [Controlling AWS Costs with Pulumi and AWS Lambda](https://www.pulumi.com/blog/controlling-aws-costs-with-lambda-and-pulumi/): Learn how to use Pulumi and AWS Lambda to create and deploy an application that can control cloud costs. — AWS
- [Azure Functions on Kubernetes with KEDA](https://www.pulumi.com/blog/deploy-a-function-app-with-keda/): Hosting Azure Functions in Kubernetes with KEDA: How It Works and the Simplest Way to Get Started — Azure, Kubernetes
- [Easy Serverless Apps and Infrastructure](https://www.pulumi.com/blog/easy-serverless-apps-and-infrastructure-real-events-real-code/): Create a simple serverless app. With Pulumi, you can create, deploy, and manage serverless apps using your favorite language. — AWS · JavaScript
- [Globally-distributed Serverless App in 100 Lines of Code](https://www.pulumi.com/blog/globally-distributed-serverless-application-in-100-lines-of-code-infrastructure-included/): Build a serverless application with both the data store and the HTTP endpoint located close to end users to ensure prompt response time. — Azure
- [Deploy Serverless Containers on Google Cloud Run with Pulumi](https://www.pulumi.com/blog/google-cloud-run-serverless-containers/): Learn how to deploy serverless containers on Google Cloud Run using Pulumi and Docker. Compare it to AWS Fargate and Azure for cost-effective scaling. — Google Cloud
- [How Ralph Wiggum Built a Serverless SaaS with Pulumi](https://www.pulumi.com/blog/how-ralph-wiggum-built-a-serverless-saas-with-pulumi/): See how an AI agent using the Ralph Wiggum loop built a full AWS serverless SaaS with Pulumi—unsupervised. Frontend, backend, tests, and CloudFront included. — AWS · TypeScript
- [The Beginner's Guide to AWS Serverless Step Functions](https://www.pulumi.com/blog/intro-to-step-functions/): Learn how to build AWS Step Functions to automate workflows & connect AWS services. Follow this step-by-step guide to deploy serverless apps.
- [Managing GitHub Webhooks with Pulumi](https://www.pulumi.com/blog/managing-github-webhooks-with-pulumi/): Use Pulumi to write a hook that would clean up branches after a pull request got merged.
- [Program the Cloud with 12 Pulumi Pearls](https://www.pulumi.com/blog/program-the-cloud-with-12-pulumi-pearls/): In this post, we'll look at some fun ways you can program the cloud using Pulumi, including infrastructure, serverless, containers, and general tips and tricks. — AWS · TypeScript
- [Programming the Cloud with Python](https://www.pulumi.com/blog/programming-the-cloud-with-python/): See how to use Pulumi and Python to automate provisioning of cloud infrastructure and delivery of applications. — AWS · Python
- [Secure APIs with Auth0 Lambda Authorizers Using Pulumi & AWS](https://www.pulumi.com/blog/protecting-your-apis-with-lambda-authorizers-and-pulumi/): Learn how to secure AWS API Gateway endpoints using Lambda authorizers and Auth0 with Pulumi. Build OAuth-protected serverless APIs in 3 steps. — AWS
- [Epsagon: Define, Deploy and Monitor Serverless Applications](https://www.pulumi.com/blog/pulumi-and-epsagon-define-deploy-and-monitor-serverless-applications/): Use the Pulumi Epsagon package to get the benefits of Epsagon monitoring for all of the serverless functions defined in your Pulumi application.
- [Getting Started on Google Cloud Platform with Pulumi](https://www.pulumi.com/blog/pulumi-heart-google-cloud-platform/): Pulumi offers tooling that works with GCP and enables collaboration, sharing, and reuse. Pulumi gives you full access to the full Google Cloud Platform. — Google Cloud, Kubernetes
- [Accessing Secrets Safely in Lambda Functions](https://www.pulumi.com/blog/safe-lambda-secrets/): Follow along and see how you can use Pulumi to securely store secrets and access them in your Lambda Functions.
- [Scheduling Serverless](https://www.pulumi.com/blog/scheduling-serverless/): Automate maintenance tasks by writing and scheduling serverless functions
- [Self-Verifying AI Agents: Vercel's Agent-Browser in the Ralph Wiggum Loop](https://www.pulumi.com/blog/self-verifying-ai-agents-vercels-agent-browser-in-the-ralph-wiggum-loop/): Vercel's agent-browser uses 82% less context than Playwright MCP. I tested both on the same six browser tests to see how they compare.
- [Host your Python app for $1.12 a month](https://www.pulumi.com/blog/serverless-api/): How cheap can you host a Python API in 2026? Package Flask as a container, deploy to AWS Lambda with Pulumi, and pay ~$1.12/month worst-case ($0 when idle). — Python
- [Serverless as Simple Callbacks with Azure Functions](https://www.pulumi.com/blog/serverless-as-simple-callbacks-with-pulumi-and-azure-functions/): Pulumi's serverless programming model makes it easy to take a Node.js function and deploy it to Azure as an HTTP endpoint. — Azure
- [Serverless on AWS with Pulumi: Simple, Event-based Functions](https://www.pulumi.com/blog/serverless-on-aws-with-pulumi-simple-event-based-functions/): Pulumi's AWS package provides the simplest way possible to do serverless programming on AWS. — AWS · JavaScript
- [Simple Serverless programming with Google Cloud Functions](https://www.pulumi.com/blog/simple-serverless-programming-with-google-cloud-functions-and-pulumi/): Pulumi lets you create, deploy, and manage Google Cloud applications and infrastructure in familiar languages without needing DSLs or YAML templating solutions. — Google Cloud
- [Ten Pearls With Azure Functions in Pulumi](https://www.pulumi.com/blog/ten-pearls-with-azure-functions-in-pulumi/): Ten bite-sized code snippets that use Pulumi to build serverless applications with Azure Functions and infrastructure as code. — Azure
- [Test-Driven Infrastructure Development with Pulumi and Jest](https://www.pulumi.com/blog/testing-pulumi-programs-with-jest/): Add unit testing with Jest to your Pulumi toolbox to write better, safer infrastructure code. — AWS · TypeScript
- [Top 5 Things an Azure Developer Needs to Know: Introduction](https://www.pulumi.com/blog/top-5-things-for-azure-devs-intro/): Introduction to Azure Cloud series for developers. — Azure
- [Top 5 Things an Azure Developer Needs to Know: Serverless](https://www.pulumi.com/blog/top-5-things-for-azure-devs-serverless/): Building and deploying serverless functions with Azure. — Azure
- [Deploying a URL Shortener with Cloudflare Workers](https://www.pulumi.com/blog/url-shortener-cloudflare-worker/): Need a URL shortener that responds is milliseconds from anywhere, delivered from over 250 edge locations? Let's deploy one with Pulumi to Cloudflare Workers. — Cloudflare
- [AWS SQS to Lambda with Pulumi: Serverless Queue Example](https://www.pulumi.com/blog/using-pulumi-with-aws-sqs-and-lambdas/): Trigger AWS Lambda from SQS using Pulumi. Learn how to build a serverless queue with JavaScript, event source mappings, and real-world deployment examples. — AWS · JavaScript

## Workshops

- [Serverless Java Production: Resilience & Optimization in GCP](https://www.pulumi.com/events/serverless-java-production-resilience-and-optimization-gcp/): Join this workshop for direct Google advice on serverless architecture, delivered with the power and convenience of Pulumi’s cloud orchestration platform. — Google Cloud · Java
