Serverless Templates
Pulumi templates for serverless applications on AWS, Azure, and Google Cloud, in your language of choice.

AWS Serverless Application
Deploy a serverless application on AWS with Pulumi, AWS Lambda, and Amazon API Gateway.

Azure Serverless Application
Deploy a serverless application on Azure with Pulumi, Azure Functions, and Azure Blob Storage.

Google Cloud Serverless Application
Deploy a serverless application on Google Cloud with Pulumi, Cloud Functions, and Cloud Storage.
About these templates
What is a serverless application?
A serverless application runs on managed cloud services that scale automatically, are highly available by default, and bill only for what you use. You write the application code (typically as a function) and the cloud provider handles the runtime, capacity, and underlying servers.
Which serverless services should I use on each cloud?
The major clouds expose comparable building blocks for serverless web and event-driven applications:
- AWS: AWS Lambda for the function runtime, Amazon API Gateway for HTTP routing, and Amazon S3 for static assets.
- Azure: Azure Functions for the function runtime and Azure Blob Storage configured for static website hosting.
- Google Cloud: Cloud Functions Gen 2 for the function runtime and Cloud Storage for static assets.
How do I deploy a serverless application with Pulumi?
Use one of the Serverless Application templates above to scaffold a Pulumi project that provisions both the function runtime and the surrounding infrastructure (storage, routing, IAM). Each template ships placeholder web and function content so the project deploys end to end with pulumi new followed by pulumi up.
Can I manage my function code in the same project as my infrastructure?
Yes. Each template includes the function source alongside the Pulumi program, so you can deploy infrastructure and application changes together as a single unit, version them in the same repository, and roll them back with one pulumi destroy.