Pulumi Examples provides ready-to-use templates for building and deploying cloud infrastructure and applications across AWS, Azure, GCP, and Kubernetes using Pulumi's Infrastructure as Code framework.
Infrastructure, containers, and serverless apps to AWS, Azure, GCP, and Kubernetes... all deployed with Pulumi
This repository is designed for developers and DevOps engineers who want to quickly learn and implement infrastructure as code using Pulumi across multiple cloud providers and languages. It offers practical, language-specific examples to accelerate cloud infrastructure deployment, configuration scanning, and security automation. Users can leverage these examples to build secure, scalable cloud environments with familiar programming languages.
Users should have Pulumi CLI installed and configured with appropriate cloud provider credentials before using these examples. It is recommended to review each example's README and Pulumi documentation for cloud-specific setup and best practices. Sparse checkout is useful to avoid cloning the entire repository when only specific examples are needed.
mkdir examples && cd examples
git init
git remote add origin -f https://github.com/pulumi/examples/
git config core.sparseCheckout true
echo "aws-go-fargate" >> .git/info/sparse-checkout # replace with desired example
git pull origin master
git clone https://github.com/pulumi/examples.git
Clone the entire Pulumi examples repository
git sparse-checkout set aws-go-fargate
Checkout only the aws-go-fargate example to reduce local clone size
pulumi up
Deploy the infrastructure defined in the selected example using Pulumi
pulumi preview
Preview the changes that will be applied by the Pulumi deployment