We use Pulumi with TypeScript for our Infrastructure as Code. Why Pulumi instead of the more popular Terraform? Webiny uses it (why Webiny chose Pulumi?), and since we’ll be using Webiny, it’s more natural to just use Pulumi also.
- cloud infrastructure is defined via code (TypeScript)
- it supports multiple cloud providers (AWS, Azure, Google Cloud Platform, …)
- it provides multiple solutions for storing infrastructure state
- a vibrant and rising community
Pulumi Cloud: Sign up for Pulumi Free Account
Sign up at https://app.pulumi.com/
Note: Pulumi provides choices to store the infrastructure state: 1) Pulumi Cloud (easiest), 2) Local
.pulumi/ folder inside project folder, 3) S3. For now, we use Pulumi Cloud with a single shared account.
Install Pulumi on Ubuntu
curl -fsSL https://get.pulumi.com | sh
To make PATH changes take effect, close Terminal and relaunch Terminal.
Pulumi with TypeScript Tutorial
pulumi new # choose aws-typescript
pulumi up -s staging
Importing Existing AWS Infrastructure
Pulumi and Soluvas AppStudio
Pulumi will be naturally useful to Soluvas AppStudio.
The required permissions for Cloudflare token are: Zone – DNS – Edit, and Zone – Page Rules – Edit.