10 | {
11 | ["name"] = username.Id
12 | };
13 | });
14 |
--------------------------------------------------------------------------------
/random-csharp/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: dotnet
4 | template:
5 | description: A minimal Random C# Pulumi program.
--------------------------------------------------------------------------------
/random-go/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: go
4 | template:
5 | description: A minimal Random Go Pulumi program.
--------------------------------------------------------------------------------
/random-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-random/sdk/v4 v4.13.0
7 | github.com/pulumi/pulumi/sdk/v3 v3.39.1
8 | )
9 |
--------------------------------------------------------------------------------
/random-go/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "github.com/pulumi/pulumi-random/sdk/v4/go/random"
5 | "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
6 | )
7 |
8 | func main() {
9 | pulumi.Run(func(ctx *pulumi.Context) error {
10 | username, err := random.NewRandomPet(ctx, "username", &random.RandomPetArgs{})
11 | if err != nil {
12 | return err
13 | }
14 |
15 | ctx.Export("name", username.ID())
16 | return nil
17 | })
18 | }
19 |
--------------------------------------------------------------------------------
/random-java/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: java
4 | template:
5 | description: A minimal Random Java Pulumi program
6 | important: true
7 |
--------------------------------------------------------------------------------
/random-java/src/main/java/myproject/App.java:
--------------------------------------------------------------------------------
1 | package myproject;
2 |
3 | import com.pulumi.Pulumi;
4 | import com.pulumi.random.RandomPet;
5 |
6 | public class App {
7 | public static void main(String[] args) {
8 | Pulumi.run(ctx -> {
9 | var username = new RandomPet("username");
10 |
11 | ctx.export("name", username.id());
12 | });
13 | }
14 | }
--------------------------------------------------------------------------------
/random-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/random-python/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: python
4 | template:
5 | description: A minimal Random Python Pulumi program.
--------------------------------------------------------------------------------
/random-python/__main__.py:
--------------------------------------------------------------------------------
1 | """A Random Python Pulumi program"""
2 |
3 | import pulumi
4 | import pulumi_random as random
5 |
6 | username = random.RandomPet('username')
7 |
8 | pulumi.export('name', username.id)
9 |
--------------------------------------------------------------------------------
/random-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-random>=4.0.0,<5.0.0
3 |
--------------------------------------------------------------------------------
/random-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
3 |
--------------------------------------------------------------------------------
/random-typescript/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: nodejs
4 | template:
5 | description: A minimal Random TypeScript Pulumi program.
--------------------------------------------------------------------------------
/random-typescript/index.ts:
--------------------------------------------------------------------------------
1 | import * as random from "@pulumi/random";
2 |
3 | const username = new random.RandomPet("username", {});
4 |
5 | export const name = username.id
--------------------------------------------------------------------------------
/random-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "main": "index.ts",
4 | "devDependencies": {
5 | "@types/node": "^18",
6 | "typescript": "^5.0.0"
7 | },
8 | "dependencies": {
9 | "@pulumi/random": "^4.13.0",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/random-yaml/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: yaml
4 | template:
5 | description: A minimal Random Pulumi YAML program.
6 |
7 | resources:
8 | username:
9 | type: random:RandomPet
10 |
11 | outputs:
12 | name: ${username.id}
--------------------------------------------------------------------------------
/rediscloud-go/go.mod:
--------------------------------------------------------------------------------
1 | module rediscloudgo
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/RedisLabs/pulumi-rediscloud/sdk v1.3.3
7 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
8 | )
9 |
--------------------------------------------------------------------------------
/rediscloud-javascript/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 |
--------------------------------------------------------------------------------
/rediscloud-javascript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "type": "module",
4 | "main": "index.js",
5 | "dependencies": {
6 | "@pulumi/pulumi": "3.60.0",
7 | "@rediscloud/pulumi-rediscloud": "^1.2.5"
8 | }
9 | }
--------------------------------------------------------------------------------
/rediscloud-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/rediscloud-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi_rediscloud>=1.1.0,<2.0.0
3 |
--------------------------------------------------------------------------------
/sagemaker-aws-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/sagemaker-aws-python/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: python
4 | template:
5 | description: A Python program to deploy a Huggingface LLM model to Amazon SageMaker with CloudWatch monitoring
6 | config:
7 | aws:region:
8 | description: The AWS region where resources will be created
9 | default: us-east-1
10 |
--------------------------------------------------------------------------------
/sagemaker-aws-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-aws>=7.0.0,<8.0.0
3 | sagemaker>=2.161.0
4 |
--------------------------------------------------------------------------------
/serverless-aws-csharp/${PROJECT}.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/serverless-aws-csharp/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: dotnet
4 | template:
5 | description: A C# program to deploy a serverless application on AWS
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 |
--------------------------------------------------------------------------------
/serverless-aws-csharp/function/handler.py:
--------------------------------------------------------------------------------
1 | from datetime import datetime
2 |
3 | def handler(event, context):
4 | return {
5 | 'statusCode': 200,
6 | 'body': datetime.now().isoformat()
7 | }
--------------------------------------------------------------------------------
/serverless-aws-csharp/www/index.html:
--------------------------------------------------------------------------------
1 | Serverless with Pulumi
2 |
3 | The current time is: .
4 |
5 |
--------------------------------------------------------------------------------
/serverless-aws-go/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: go
4 | template:
5 | description: A Go program to deploy a serverless application on AWS
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 |
--------------------------------------------------------------------------------
/serverless-aws-go/function/handler.py:
--------------------------------------------------------------------------------
1 | from datetime import datetime
2 |
3 | def handler(event, context):
4 | return {
5 | 'statusCode': 200,
6 | 'body': datetime.now().isoformat()
7 | }
--------------------------------------------------------------------------------
/serverless-aws-go/www/index.html:
--------------------------------------------------------------------------------
1 | Serverless with Pulumi
2 |
3 | The current time is: .
4 |
5 |
--------------------------------------------------------------------------------
/serverless-aws-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/serverless-aws-python/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime:
4 | name: python
5 | options:
6 | virtualenv: venv
7 | template:
8 | description: A Python program to deploy a serverless application on AWS
9 | config:
10 | aws:region:
11 | description: The AWS region to deploy into
12 | default: us-west-2
13 |
14 |
--------------------------------------------------------------------------------
/serverless-aws-python/function/handler.py:
--------------------------------------------------------------------------------
1 | from datetime import datetime
2 |
3 | def handler(event, context):
4 | return {
5 | 'statusCode': 200,
6 | 'body': datetime.now().isoformat()
7 | }
--------------------------------------------------------------------------------
/serverless-aws-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-aws>=7.0.0,<8.0.0
3 | pulumi-aws-apigateway>=3.0.0,<4.0.0
4 | pulumi-awsx>=3.0.0,<4.0.0
5 |
--------------------------------------------------------------------------------
/serverless-aws-python/www/index.html:
--------------------------------------------------------------------------------
1 | Serverless with Pulumi
2 |
3 | The current time is: .
4 |
5 |
--------------------------------------------------------------------------------
/serverless-aws-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/serverless-aws-typescript/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: nodejs
4 | template:
5 | description: A TypeScript program to deploy a serverless application on AWS
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 |
--------------------------------------------------------------------------------
/serverless-aws-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/aws": "^7.0.0",
9 | "@pulumi/aws-apigateway": "^2.0.0",
10 | "@pulumi/awsx": "^2.0.2",
11 | "@pulumi/pulumi": "^3.113.0"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/serverless-aws-typescript/www/index.html:
--------------------------------------------------------------------------------
1 | Serverless with Pulumi
2 |
3 | The current time is: .
4 |
5 |
--------------------------------------------------------------------------------
/serverless-aws-yaml/function/handler.py:
--------------------------------------------------------------------------------
1 | from datetime import datetime
2 |
3 | def handler(event, context):
4 | return {
5 | 'statusCode': 200,
6 | 'body': datetime.now().isoformat()
7 | }
--------------------------------------------------------------------------------
/serverless-aws-yaml/www/index.html:
--------------------------------------------------------------------------------
1 | Serverless with Pulumi
2 |
3 | The current time is: .
4 |
5 |
--------------------------------------------------------------------------------
/serverless-azure-csharp/app/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "logging": {
4 | "applicationInsights": {
5 | "samplingSettings": {
6 | "isEnabled": true,
7 | "excludedTypes": "Request"
8 | }
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/serverless-azure-csharp/app/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "AzureWebJobsStorage": "UseDevelopmentStorage=true",
5 | "FUNCTIONS_WORKER_RUNTIME": "dotnet"
6 | }
7 | }
--------------------------------------------------------------------------------
/serverless-azure-csharp/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-azure-go/app/.gitignore:
--------------------------------------------------------------------------------
1 | /app
2 |
--------------------------------------------------------------------------------
/serverless-azure-go/app/data/function.json:
--------------------------------------------------------------------------------
1 | {
2 | "bindings": [
3 | {
4 | "authLevel": "Anonymous",
5 | "type": "httpTrigger",
6 | "direction": "in",
7 | "name": "req",
8 | "methods": [
9 | "get"
10 | ]
11 | },
12 | {
13 | "type": "http",
14 | "direction": "out",
15 | "name": "res"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/serverless-azure-go/app/go.mod:
--------------------------------------------------------------------------------
1 | module fn
2 |
3 | go 1.20
4 |
--------------------------------------------------------------------------------
/serverless-azure-go/app/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "FUNCTIONS_WORKER_RUNTIME": "custom",
5 | "AzureWebJobsStorage": ""
6 | }
7 | }
--------------------------------------------------------------------------------
/serverless-azure-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-azure-native-sdk/resources/v2 v2.1.1
7 | github.com/pulumi/pulumi-azure-native-sdk/storage/v2 v2.1.1
8 | github.com/pulumi/pulumi-azure-native-sdk/web/v2 v2.1.1
9 | github.com/pulumi/pulumi-command/sdk v0.7.0
10 | github.com/pulumi/pulumi-synced-folder/sdk v0.0.9
11 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
12 | )
13 |
--------------------------------------------------------------------------------
/serverless-azure-go/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-azure-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/serverless-azure-python/app/data/function.json:
--------------------------------------------------------------------------------
1 | {
2 | "scriptFile": "__init__.py",
3 | "bindings": [
4 | {
5 | "authLevel": "Anonymous",
6 | "type": "httpTrigger",
7 | "direction": "in",
8 | "name": "req",
9 | "methods": [
10 | "get"
11 | ]
12 | },
13 | {
14 | "type": "http",
15 | "direction": "out",
16 | "name": "$return"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/serverless-azure-python/app/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "logging": {
4 | "applicationInsights": {
5 | "samplingSettings": {
6 | "isEnabled": true,
7 | "excludedTypes": "Request"
8 | }
9 | }
10 | },
11 | "extensionBundle": {
12 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
13 | "version": "[3.*, 4.0.0)"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/serverless-azure-python/app/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "FUNCTIONS_WORKER_RUNTIME": "python",
5 | "AzureWebJobsStorage": ""
6 | }
7 | }
--------------------------------------------------------------------------------
/serverless-azure-python/app/requirements.txt:
--------------------------------------------------------------------------------
1 | # Do not include azure-functions-worker in this file
2 | # The Python Worker is managed by the Azure Functions platform
3 | # Manually managing azure-functions-worker may cause unexpected issues
4 |
5 | azure-functions
--------------------------------------------------------------------------------
/serverless-azure-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-azure-native>=2.0.0,<3.0.0
3 | pulumi-synced-folder>=0.0.0,<1.0.0
4 |
--------------------------------------------------------------------------------
/serverless-azure-python/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-azure-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/serverless-azure-typescript/app/data/function.json:
--------------------------------------------------------------------------------
1 | {
2 | "bindings": [
3 | {
4 | "authLevel": "anonymous",
5 | "type": "httpTrigger",
6 | "direction": "in",
7 | "name": "req",
8 | "methods": [
9 | "get",
10 | "options"
11 | ]
12 | },
13 | {
14 | "type": "http",
15 | "direction": "out",
16 | "name": "res"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/serverless-azure-typescript/app/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0"
3 | }
4 |
--------------------------------------------------------------------------------
/serverless-azure-typescript/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}-app",
3 | "version": "0.1.0"
4 | }
5 |
--------------------------------------------------------------------------------
/serverless-azure-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/azure-native": "^2.0.0",
9 | "@pulumi/synced-folder": "^0.0.9",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/serverless-azure-typescript/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-azure-yaml/app/data/function.json:
--------------------------------------------------------------------------------
1 | {
2 | "scriptFile": "__init__.py",
3 | "bindings": [
4 | {
5 | "authLevel": "Anonymous",
6 | "type": "httpTrigger",
7 | "direction": "in",
8 | "name": "req",
9 | "methods": [
10 | "get"
11 | ]
12 | },
13 | {
14 | "type": "http",
15 | "direction": "out",
16 | "name": "$return"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/serverless-azure-yaml/app/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "logging": {
4 | "applicationInsights": {
5 | "samplingSettings": {
6 | "isEnabled": true,
7 | "excludedTypes": "Request"
8 | }
9 | }
10 | },
11 | "extensionBundle": {
12 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
13 | "version": "[3.*, 4.0.0)"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/serverless-azure-yaml/app/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "FUNCTIONS_WORKER_RUNTIME": "python",
5 | "AzureWebJobsStorage": ""
6 | }
7 | }
--------------------------------------------------------------------------------
/serverless-azure-yaml/app/requirements.txt:
--------------------------------------------------------------------------------
1 | # Do not include azure-functions-worker in this file
2 | # The Python Worker is managed by the Azure Functions platform
3 | # Manually managing azure-functions-worker may cause unexpected issues
4 |
5 | azure-functions
--------------------------------------------------------------------------------
/serverless-azure-yaml/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-gcp-csharp/app/App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Exe
4 | net8.0
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/serverless-gcp-csharp/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-gcp-go/app/go.mod:
--------------------------------------------------------------------------------
1 | module example.com/${PROJECT}/api
2 |
3 | go 1.16
4 |
5 | require cloud.google.com/go/functions v1.0.0
6 |
--------------------------------------------------------------------------------
/serverless-gcp-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-gcp/sdk/v9 v9.0.0
7 | github.com/pulumi/pulumi-synced-folder/sdk v0.0.9
8 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
9 | )
10 |
--------------------------------------------------------------------------------
/serverless-gcp-go/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-gcp-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/serverless-gcp-python/app/requirements.txt:
--------------------------------------------------------------------------------
1 | functions-framework==3.2.0
2 | flask==2.1.0
3 |
--------------------------------------------------------------------------------
/serverless-gcp-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-gcp>=9.0.0,<10.0.0
3 | pulumi-synced-folder>=0.0.0,<1.0.0
4 |
--------------------------------------------------------------------------------
/serverless-gcp-python/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-gcp-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
3 |
--------------------------------------------------------------------------------
/serverless-gcp-typescript/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}-app",
3 | "version": "0.1.0",
4 | "dependencies": {
5 | "@google-cloud/functions-framework": "^3.1.0"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/serverless-gcp-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "main": "index.ts",
4 | "devDependencies": {
5 | "@types/node": "^18",
6 | "typescript": "^5.0.0"
7 | },
8 | "dependencies": {
9 | "@pulumi/gcp": "^9.0.0",
10 | "@pulumi/synced-folder": "^0.0.9",
11 | "@pulumi/pulumi": "^3.113.0"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/serverless-gcp-typescript/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/serverless-gcp-yaml/app/requirements.txt:
--------------------------------------------------------------------------------
1 | functions-framework==3.2.0
2 | flask==2.1.0
3 |
--------------------------------------------------------------------------------
/serverless-gcp-yaml/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-csharp/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-csharp/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-aws-go/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-go/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-aws-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/static-website-aws-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-aws>=7.0.0,<8.0.0
3 | pulumi-synced-folder>=0.0.0,<1.0.0
4 |
--------------------------------------------------------------------------------
/static-website-aws-python/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-python/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-aws-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/static-website-aws-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/aws": "^7.0.0",
9 | "@pulumi/synced-folder": "^0.11.1",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/static-website-aws-typescript/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-typescript/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-aws-yaml/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-aws-yaml/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-azure-csharp/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-azure-csharp/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-azure-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-azure-native-sdk/cdn/v2 v2.1.1
7 | github.com/pulumi/pulumi-azure-native-sdk/resources/v2 v2.1.1
8 | github.com/pulumi/pulumi-azure-native-sdk/storage/v2 v2.1.1
9 | github.com/pulumi/pulumi-synced-folder/sdk v0.0.9
10 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
11 | )
12 |
--------------------------------------------------------------------------------
/static-website-azure-go/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-azure-go/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-azure-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/static-website-azure-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-azure-native>=2.0.0,<3.0.0
3 | pulumi-synced-folder>=0.0.0,<1.0.0
4 |
--------------------------------------------------------------------------------
/static-website-azure-python/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-azure-python/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-azure-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/static-website-azure-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/azure-native": "^2.0.0",
9 | "@pulumi/synced-folder": "^0.0.9",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/static-website-azure-typescript/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-azure-typescript/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-azure-yaml/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-azure-yaml/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-gcp-csharp/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-gcp-csharp/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-gcp-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-gcp/sdk/v9 v9.0.0
7 | github.com/pulumi/pulumi-synced-folder/sdk v0.0.9
8 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
9 | )
10 |
--------------------------------------------------------------------------------
/static-website-gcp-go/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-gcp-go/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-gcp-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/static-website-gcp-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-gcp>=9.0.0,<10.0.0
3 | pulumi-synced-folder>=0.0.0,<1.0.0
4 |
--------------------------------------------------------------------------------
/static-website-gcp-python/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-gcp-python/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-gcp-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/static-website-gcp-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/gcp": "^9.0.0",
9 | "@pulumi/synced-folder": "^0.0.9",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/static-website-gcp-typescript/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-gcp-typescript/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/static-website-gcp-yaml/www/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Page not found
6 |
7 |
8 | Oops! That page wasn't found. Try our home page instead.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/static-website-gcp-yaml/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, world!
6 |
7 |
8 | Hello, world! 👋
9 | Deployed with 💜 by Pulumi.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
3 |
--------------------------------------------------------------------------------
/typescript/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: nodejs
4 | template:
5 | description: A minimal TypeScript Pulumi program
6 |
--------------------------------------------------------------------------------
/typescript/index.ts:
--------------------------------------------------------------------------------
1 | import * as pulumi from "@pulumi/pulumi";
2 |
--------------------------------------------------------------------------------
/typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "main": "index.ts",
4 | "devDependencies": {
5 | "@types/node": "^18",
6 | "typescript": "^5.0.0"
7 | },
8 | "dependencies": {
9 | "@pulumi/pulumi": "^3.113.0"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/visualbasic/${PROJECT}.vbproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/visualbasic/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: dotnet
4 | template:
5 | description: "A minimal VB.NET Pulumi program"
6 |
--------------------------------------------------------------------------------
/vm-aws-csharp/${PROJECT}.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/vm-aws-csharp/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: dotnet
4 | template:
5 | description: A C# program to deploy a virtual machine on Amazon EC2
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 | instanceType:
11 | description: The Amazon EC2 instance type
12 | default: t3.micro
13 | vpcNetworkCidr:
14 | description: The network CIDR to use for the VPC
15 | default: 10.0.0.0/16
16 |
--------------------------------------------------------------------------------
/vm-aws-go/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: go
4 | template:
5 | description: A Go program to deploy a virtual machine on Amazon EC2
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 | instanceType:
11 | description: The Amazon EC2 instance type
12 | default: t3.micro
13 | vpcNetworkCidr:
14 | description: The network CIDR to use for the VPC
15 | default: 10.0.0.0/16
16 |
--------------------------------------------------------------------------------
/vm-aws-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/vm-aws-python/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: python
4 | template:
5 | description: A Python program to deploy a virtual machine on Amazon EC2
6 | config:
7 | aws:region:
8 | description: The AWS region to deploy into
9 | default: us-west-2
10 | instanceType:
11 | description: The Amazon EC2 instance type
12 | default: t3.micro
13 | vpcNetworkCidr:
14 | description: The network CIDR to use for the VPC
15 | default: 10.0.0.0/16
16 |
--------------------------------------------------------------------------------
/vm-aws-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-aws>=7.0.0,<8.0.0
3 |
--------------------------------------------------------------------------------
/vm-aws-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/vm-aws-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/aws": "^7.0.0",
9 | "@pulumi/pulumi": "^3.113.0"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/vm-azure-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-azure-native-sdk/compute/v2 v2.1.1
7 | github.com/pulumi/pulumi-azure-native-sdk/network/v2 v2.1.1
8 | github.com/pulumi/pulumi-azure-native-sdk/resources/v2 v2.1.1
9 | github.com/pulumi/pulumi-random/sdk/v4 v4.8.2
10 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
11 | github.com/pulumi/pulumi-tls/sdk/v4 v4.11.1
12 | )
13 |
--------------------------------------------------------------------------------
/vm-azure-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/vm-azure-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-azure-native>=2.0.0,<3.0.0
3 | pulumi-random>=4.0.0,<5.0.0
4 | pulumi-tls>=4.0.0,<5.0.0
5 |
--------------------------------------------------------------------------------
/vm-azure-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
3 |
--------------------------------------------------------------------------------
/vm-azure-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vm-azure-typescript",
3 | "main": "index.ts",
4 | "devDependencies": {
5 | "@types/node": "^18",
6 | "typescript": "^5.0.0"
7 | },
8 | "dependencies": {
9 | "@pulumi/azure-native": "^2.0.0",
10 | "@pulumi/random": "^4.8.2",
11 | "@pulumi/tls": "^4.0.0",
12 | "@pulumi/pulumi": "^3.113.0"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/vm-gcp-csharp/${PROJECT}.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/vm-gcp-go/go.mod:
--------------------------------------------------------------------------------
1 | module ${PROJECT}
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi-gcp/sdk/v9 v9.0.0
7 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
8 | )
9 |
--------------------------------------------------------------------------------
/vm-gcp-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
3 |
--------------------------------------------------------------------------------
/vm-gcp-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-gcp>=9.0.0,<10.0.0
3 |
--------------------------------------------------------------------------------
/vm-gcp-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
3 |
--------------------------------------------------------------------------------
/vm-gcp-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${PROJECT}",
3 | "main": "index.ts",
4 | "devDependencies": {
5 | "@types/node": "^18",
6 | "typescript": "^5.0.0"
7 | },
8 | "dependencies": {
9 | "@pulumi/gcp": "^9.0.0",
10 | "@pulumi/pulumi": "^3.113.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/webapp-kubernetes-csharp/${PROJECT}.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/webapp-kubernetes-csharp/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: dotnet
4 | template:
5 | description: A C# program to deploy a web application onto a Kubernetes cluster
6 | config:
7 | namespace:
8 | default: default
9 | description: The Kubernetes namespace to deploy into
10 | replicas:
11 | default: 1
12 | description: The number of replicas to deploy
13 |
--------------------------------------------------------------------------------
/webapp-kubernetes-go/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: go
4 | template:
5 | description: A Go program to deploy a web application onto a Kubernetes cluster
6 | config:
7 | namespace:
8 | default: default
9 | description: The Kubernetes namespace to deploy into
10 | replicas:
11 | default: 1
12 | description: The number of replicas to deploy
13 |
--------------------------------------------------------------------------------
/webapp-kubernetes-go/go.mod:
--------------------------------------------------------------------------------
1 | module tmp
2 |
3 | go 1.20
4 |
5 | require (
6 | github.com/pulumi/pulumi/sdk/v3 v3.96.1
7 | github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.0.3
8 | )
9 |
--------------------------------------------------------------------------------
/webapp-kubernetes-python/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | venv/
--------------------------------------------------------------------------------
/webapp-kubernetes-python/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: python
4 | template:
5 | description: A Python program to deploy a web application onto a Kubernetes cluster
6 | config:
7 | namespace:
8 | default: default
9 | description: The Kubernetes namespace to deploy into
10 | replicas:
11 | default: 1
12 | description: The number of replicas to deploy
13 |
--------------------------------------------------------------------------------
/webapp-kubernetes-python/requirements.txt:
--------------------------------------------------------------------------------
1 | pulumi>=3.0.0,<4.0.0
2 | pulumi-kubernetes>=4.0.0,<5.0.0
3 |
--------------------------------------------------------------------------------
/webapp-kubernetes-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /node_modules/
--------------------------------------------------------------------------------
/webapp-kubernetes-typescript/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: nodejs
4 | template:
5 | description: A TypeScript program to deploy a web application onto a Kubernetes cluster
6 | config:
7 | namespace:
8 | default: default
9 | description: The Kubernetes namespace to deploy into
10 | replicas:
11 | default: 1
12 | description: The number of replicas to deploy
13 |
--------------------------------------------------------------------------------
/webapp-kubernetes-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "webapp-kubernetes-typescript",
3 | "devDependencies": {
4 | "@types/node": "^18",
5 | "typescript": "^5.0.0"
6 | },
7 | "dependencies": {
8 | "@pulumi/kubernetes": "^4.0.0",
9 | "@pulumi/pulumi": "^3.113.0"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/webapp-kubernetes-typescript/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "strict": true,
4 | "outDir": "bin",
5 | "target": "es2020",
6 | "module": "commonjs",
7 | "moduleResolution": "node",
8 | "sourceMap": true,
9 | "experimentalDecorators": true,
10 | "pretty": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "noImplicitReturns": true,
13 | "forceConsistentCasingInFileNames": true
14 | },
15 | "files": [
16 | "index.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/yaml/Pulumi.yaml:
--------------------------------------------------------------------------------
1 | name: ${PROJECT}
2 | description: ${DESCRIPTION}
3 | runtime: yaml
4 | template:
5 | description: A minimal Pulumi YAML program
6 |
7 | config: {}
8 | variables: {}
9 | resources: {}
10 | outputs: {}
11 |
--------------------------------------------------------------------------------