Skip to content

Commit

Permalink
Add 'Deploy with Pulumi' button to examples (pulumi#167)
Browse files Browse the repository at this point in the history
For each example, add a template section to Pulumi.yaml and the 'Deploy
with Pulumi' button at the top of README.md.
  • Loading branch information
justinvp committed Nov 8, 2018
1 parent fb9a23c commit 4b978f9
Show file tree
Hide file tree
Showing 98 changed files with 505 additions and 32 deletions.
8 changes: 7 additions & 1 deletion aws-go-s3-folder/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: aws-go-s3-folder
runtime: go
description: A static website hosted on AWS S3.
description: A static website hosted on AWS S3
template:
description: A static website hosted on AWS S3
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
2 changes: 2 additions & 0 deletions aws-go-s3-folder/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Static Website Hosted on AWS S3 in Go

A static website that uses [S3's website support](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
Expand Down
6 changes: 6 additions & 0 deletions aws-js-s3-folder-component/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: aws-js-s3-folder-component
runtime: nodejs
description: A static website hosted on AWS S3
template:
description: A static website hosted on AWS S3
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
2 changes: 2 additions & 0 deletions aws-js-s3-folder-component/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Static Website Hosted on AWS S3

The component version of [aws-js-s3-folder](../aws-js-s3-folder). For a detailed walkthrough of this example, see [Tutorial: Pulumi Components](https://pulumi.io/reference/component-tutorial.html).
Expand Down
6 changes: 6 additions & 0 deletions aws-js-s3-folder/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: aws-js-s3-folder
runtime: nodejs
description: A static website hosted on AWS S3
template:
description: A static website hosted on AWS S3
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
2 changes: 2 additions & 0 deletions aws-js-s3-folder/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Static Website Hosted on AWS S3

A static website that uses [S3's website support](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
Expand Down
11 changes: 11 additions & 0 deletions aws-js-sqs-slack/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
name: aws-js-sqs-slack
description: Post to Slack for each SQS message!
runtime: nodejs
template:
description: Post to Slack for each SQS message!
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
slackChannel:
description: The Slack channel
default: "#general"
slackToken:
description: The Slack access token
2 changes: 2 additions & 0 deletions aws-js-sqs-slack/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Post AWS SQS Messages to Slack using Serverless Lambdas

This example wires up a serverless AWS Lambda to an AWS SQS queue and demonstrates posting a
Expand Down
2 changes: 1 addition & 1 deletion aws-js-sqs-slack/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.

let pulumi = require("@pulumi/pulumi");
let config = new pulumi.Config(pulumi.getProject());
let config = new pulumi.Config();
module.exports = {
slackChannel: config.get("slackChannel") || "#general",
slackToken: config.require("slackToken"),
Expand Down
8 changes: 7 additions & 1 deletion aws-js-webserver-component/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: webserver
runtime: nodejs
description: Basic example of an AWS web server accessible over HTTP.
description: Basic example of an AWS web server accessible over HTTP
template:
description: Basic example of an AWS web server accessible over HTTP
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1
2 changes: 2 additions & 0 deletions aws-js-webserver-component/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS Web Server component example

Deploy an EC2 instance using `@pulumi/aws`, using a common module for creating an instance. A function `createInstance` is defined in [webserver.js](webserver.js) which is then used in main program.
Expand Down
8 changes: 7 additions & 1 deletion aws-js-webserver/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: webserver
runtime: nodejs
description: Basic example of an AWS web server accessible over HTTP.
description: Basic example of an AWS web server accessible over HTTP
template:
description: Basic example of an AWS web server accessible over HTTP
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1
2 changes: 2 additions & 0 deletions aws-js-webserver/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS EC2 Web Server

This example deploys a simple AWS EC2 virtual machine running a Python web server.
Expand Down
8 changes: 7 additions & 1 deletion aws-py-stepfunctions/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: stepfunctions-py
description: Basic example of AWS Step Functions in Python.
description: Basic example of AWS Step Functions in Python
runtime: python
template:
description: Basic example of AWS Step Functions in Python
config:
aws:region:
description: The AWS region to deploy into
default: us-east-2
2 changes: 2 additions & 0 deletions aws-py-stepfunctions/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS Step Functions (Python)

A basic example that demonstrates using AWS Step Functions with a Lambda function, written in Python.
Expand Down
6 changes: 6 additions & 0 deletions aws-py-webserver/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: webserver-py
runtime: python
description: Basic example of an AWS web server accessible over HTTP (in Python!)
template:
description: Basic example of an AWS web server accessible over HTTP (in Python!)
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
2 changes: 2 additions & 0 deletions aws-py-webserver/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS Web Server example in Python

An example based on the Amazon sample at:
Expand Down
13 changes: 13 additions & 0 deletions aws-ts-airflow/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
name: airflow
runtime: nodejs
description: AWS RDS and Airflow example
template:
description: AWS RDS and Airflow example
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1
cloud-aws:ecsAutoCluster:
description: Automatically provision ECS Cluster?
default: true
airflow:dbPassword:
description: The desired RDS password
secret: true
2 changes: 2 additions & 0 deletions aws-ts-airflow/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS RDS and Airflow example

A Pulumi program to deploy an RDS Postgres instance and containerized Airflow.
Expand Down
6 changes: 6 additions & 0 deletions aws-ts-eks/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: aws-ts-eks
description: EKS cluster example
runtime: nodejs
template:
description: EKS cluster example
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
2 changes: 2 additions & 0 deletions aws-ts-eks/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS EKS Cluster

This example deploys an EKS Kubernetes cluster with an EBS-backed StorageClass and deploys the Kubernetes Dashboard
Expand Down
8 changes: 7 additions & 1 deletion aws-ts-resources/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: aws-ts-resources
description: A Pulumi program that demonstrates creating various AWS resources.
description: A Pulumi program that demonstrates creating various AWS resources
runtime: nodejs
template:
description: A Pulumi program that demonstrates creating various AWS resources
config:
aws:region:
description: The AWS region to deploy into
default: us-east-2
2 changes: 2 additions & 0 deletions aws-ts-resources/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS Resources

A Pulumi program that demonstrates creating various AWS resources.
Expand Down
16 changes: 15 additions & 1 deletion aws-ts-ruby-on-rails/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
name: rails
runtime: nodejs
description: A Ruby on Rails stack using a single EC2 instance with a local MySQL database for storage.
description: A Ruby on Rails stack using a single EC2 instance with a local MySQL database for storage
template:
description: A Ruby on Rails stack using a single EC2 instance with a local MySQL database for storage
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
dbUser:
description: The DB user
dbPassword:
description: The DB password
secret: true
dbRootPassword:
description: The DB root password
secret: true
2 changes: 2 additions & 0 deletions aws-ts-ruby-on-rails/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS EC2 Ruby on Rails

This is a conversion of the AWS CloudFormation Application Framework template for a basic Ruby on Rails server.
Expand Down
8 changes: 7 additions & 1 deletion aws-ts-serverless-raw/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: serverless
runtime: nodejs
description: Basic example of a serverless AWS application.
description: Basic example of a serverless AWS application
template:
description: Basic example of a serverless AWS application
config:
aws:region:
description: The AWS region to deploy into
default: us-east-2
2 changes: 2 additions & 0 deletions aws-ts-serverless-raw/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# serverless-raw

This example deploys a complete serverless C# application using raw `aws.apigateway.RestAPI`, `aws.lambda.Function` and
Expand Down
14 changes: 13 additions & 1 deletion aws-ts-static-website/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
name: static-website
description: Static website example.
description: Static website example
runtime: nodejs
template:
description: Static website example
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1
static-website:certificateArn:
description: ACM certificate ARN for the target domain; must be in the us-east-1 region
static-website:targetDomain:
description: The domain to serve the website at (e.g. www.example.com)
static-website:pathToWebsiteContents:
description: Relative path to the website's contents (e.g. the `./www` folder)
2 changes: 2 additions & 0 deletions aws-ts-static-website/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Static Website using AWS and TypeScript

This example serves a static website using TypeScript and AWS.
Expand Down
8 changes: 7 additions & 1 deletion aws-ts-stepfunctions/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: stepfunctions
description: Basic example of AWS Step Functions.
description: Basic example of AWS Step Functions
runtime: nodejs
template:
description: Basic example of AWS Step Functions
config:
aws:region:
description: The AWS region to deploy into
default: us-east-2
2 changes: 2 additions & 0 deletions aws-ts-stepfunctions/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# AWS Step Functions

A basic example that demonstrates using AWS Step Functions with a Lambda function.
Expand Down
13 changes: 12 additions & 1 deletion azure-js-webserver/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
name: webserver-azure
runtime: nodejs
description: Basic example of an Azure web server accessible over HTTP.
description: Basic example of an Azure web server accessible over HTTP
template:
description: Basic example of an Azure web server accessible over HTTP
config:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
username:
description: The username used to configure the Virtual Machine
password:
description: The password used to configure the Virtual Machine
secret: true
2 changes: 2 additions & 0 deletions azure-js-webserver/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Pulumi web server (Azure)

Starting point for building the Pulumi web server sample in Azure.
Expand Down
13 changes: 12 additions & 1 deletion azure-ts-aks-helm/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
name: azure-ts-aks-helm
runtime: nodejs
description: Create an Azure Kubernetes Service (AKS) cluster and deploy a Helm Chart into it.
description: Create an Azure Kubernetes Service (AKS) cluster and deploy a Helm Chart into it
template:
description: Create an Azure Kubernetes Service (AKS) cluster and deploy a Helm Chart into it
config:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
password:
description: Your cluster password
secret: true
sshPublicKey:
description: Your SSH public key (generate with `ssh-keygen -t rsa -f key.rsa`)
2 changes: 2 additions & 0 deletions azure-ts-aks-helm/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Azure Kubernetes Service (AKS) Cluster and Helm Chart

This example demonstrates creating an Azure Kubernetes Service (AKS) Cluster, and deploying a Helm Chart into it,
Expand Down
11 changes: 11 additions & 0 deletions azure-ts-aks-mean/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
name: azure-mean
description: A simple Deployment running nginx, exposed to the Internet with a Service
runtime: nodejs
template:
description: A simple Deployment running nginx, exposed to the Internet with a Service
config:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
password:
description: Your cluster password
secret: true
sshPublicKey:
description: Your SSH public key (generate with `ssh-keygen -t rsa -f key.rsa`)
2 changes: 2 additions & 0 deletions azure-ts-aks-mean/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# A Node.js demo app deployed on AKS, using CosmosDB

Stands up an [Azure Kubernetes Service][aks] (AKS) cluster and a MongoDB-flavored instance of
Expand Down
11 changes: 10 additions & 1 deletion azure-ts-appservice/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
name: azure-appservice
runtime: nodejs
description: Creates Azure App Service with SQL Database and Application Insights.
description: Creates Azure App Service with SQL Database and Application Insights
template:
description: Creates Azure App Service with SQL Database and Application Insights
config:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
sqlPassword:
description: SQL Server password (complex enough to satisfy Azure policy)
secret: true
2 changes: 2 additions & 0 deletions azure-ts-appservice/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Azure App Service with SQL Database and Application Insights

Starting point for building web application hosted in Azure App Service.
Expand Down
7 changes: 7 additions & 0 deletions azure-ts-functions/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
name: azure-functions
runtime: nodejs
description: Azure Functions example
template:
description: Azure Functions example
config:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
2 changes: 2 additions & 0 deletions azure-ts-functions/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)

# Azure Functions

An example Pulumi component that deploys a TypeScript function to Azure Functions.
Expand Down
8 changes: 7 additions & 1 deletion cloud-js-api/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: cloud-js-httpendpoint
description: A simple HTTP endpoint that returns the number of times a route has been hit.
description: A simple HTTP endpoint that returns the number of times a route has been hit
runtime: nodejs
template:
description: A simple HTTP endpoint that returns the number of times a route has been hit
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
Loading

0 comments on commit 4b978f9

Please sign in to comment.