diff --git a/aws-go-s3-folder/Pulumi.yaml b/aws-go-s3-folder/Pulumi.yaml index 39247f48e..a93e09160 100644 --- a/aws-go-s3-folder/Pulumi.yaml +++ b/aws-go-s3-folder/Pulumi.yaml @@ -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 diff --git a/aws-go-s3-folder/README.md b/aws-go-s3-folder/README.md index 1a105fffb..f5fbccab2 100644 --- a/aws-go-s3-folder/README.md +++ b/aws-go-s3-folder/README.md @@ -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). diff --git a/aws-js-s3-folder-component/Pulumi.yaml b/aws-js-s3-folder-component/Pulumi.yaml index 1a9d7bfca..b61a68621 100644 --- a/aws-js-s3-folder-component/Pulumi.yaml +++ b/aws-js-s3-folder-component/Pulumi.yaml @@ -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 diff --git a/aws-js-s3-folder-component/README.md b/aws-js-s3-folder-component/README.md index 91b300896..05f0adf49 100644 --- a/aws-js-s3-folder-component/README.md +++ b/aws-js-s3-folder-component/README.md @@ -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). diff --git a/aws-js-s3-folder/Pulumi.yaml b/aws-js-s3-folder/Pulumi.yaml index 7db5c6ba7..bcc031079 100644 --- a/aws-js-s3-folder/Pulumi.yaml +++ b/aws-js-s3-folder/Pulumi.yaml @@ -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 diff --git a/aws-js-s3-folder/README.md b/aws-js-s3-folder/README.md index 999920206..ddf3c4b31 100644 --- a/aws-js-s3-folder/README.md +++ b/aws-js-s3-folder/README.md @@ -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). diff --git a/aws-js-sqs-slack/Pulumi.yaml b/aws-js-sqs-slack/Pulumi.yaml index 704c82c92..f56e2234d 100644 --- a/aws-js-sqs-slack/Pulumi.yaml +++ b/aws-js-sqs-slack/Pulumi.yaml @@ -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 diff --git a/aws-js-sqs-slack/README.md b/aws-js-sqs-slack/README.md index 74190cb47..5f0348e31 100644 --- a/aws-js-sqs-slack/README.md +++ b/aws-js-sqs-slack/README.md @@ -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 diff --git a/aws-js-sqs-slack/config.js b/aws-js-sqs-slack/config.js index 01edb6be8..62805964a 100644 --- a/aws-js-sqs-slack/config.js +++ b/aws-js-sqs-slack/config.js @@ -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"), diff --git a/aws-js-webserver-component/Pulumi.yaml b/aws-js-webserver-component/Pulumi.yaml index 38cec9e6a..ccf92872d 100755 --- a/aws-js-webserver-component/Pulumi.yaml +++ b/aws-js-webserver-component/Pulumi.yaml @@ -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 diff --git a/aws-js-webserver-component/README.md b/aws-js-webserver-component/README.md index a6bb24a73..26b88f16e 100644 --- a/aws-js-webserver-component/README.md +++ b/aws-js-webserver-component/README.md @@ -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. diff --git a/aws-js-webserver/Pulumi.yaml b/aws-js-webserver/Pulumi.yaml index 38cec9e6a..ccf92872d 100755 --- a/aws-js-webserver/Pulumi.yaml +++ b/aws-js-webserver/Pulumi.yaml @@ -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 diff --git a/aws-js-webserver/README.md b/aws-js-webserver/README.md index e551ba401..f822cab6f 100755 --- a/aws-js-webserver/README.md +++ b/aws-js-webserver/README.md @@ -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. diff --git a/aws-py-stepfunctions/Pulumi.yaml b/aws-py-stepfunctions/Pulumi.yaml index 66a47cf92..a8cee5ed3 100644 --- a/aws-py-stepfunctions/Pulumi.yaml +++ b/aws-py-stepfunctions/Pulumi.yaml @@ -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 diff --git a/aws-py-stepfunctions/README.md b/aws-py-stepfunctions/README.md index ed35c5d00..c3f83a2fb 100644 --- a/aws-py-stepfunctions/README.md +++ b/aws-py-stepfunctions/README.md @@ -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. diff --git a/aws-py-webserver/Pulumi.yaml b/aws-py-webserver/Pulumi.yaml index 562eb1810..04ef3e91a 100644 --- a/aws-py-webserver/Pulumi.yaml +++ b/aws-py-webserver/Pulumi.yaml @@ -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 diff --git a/aws-py-webserver/README.md b/aws-py-webserver/README.md index 95a8b2be9..a34087a6b 100644 --- a/aws-py-webserver/README.md +++ b/aws-py-webserver/README.md @@ -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: diff --git a/aws-ts-airflow/Pulumi.yaml b/aws-ts-airflow/Pulumi.yaml index ef076e513..976b36e99 100644 --- a/aws-ts-airflow/Pulumi.yaml +++ b/aws-ts-airflow/Pulumi.yaml @@ -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 diff --git a/aws-ts-airflow/README.md b/aws-ts-airflow/README.md index 342c964b3..8c6c0a5db 100644 --- a/aws-ts-airflow/README.md +++ b/aws-ts-airflow/README.md @@ -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. diff --git a/aws-ts-eks/Pulumi.yaml b/aws-ts-eks/Pulumi.yaml index 6ebf0c0ee..5c40dade9 100644 --- a/aws-ts-eks/Pulumi.yaml +++ b/aws-ts-eks/Pulumi.yaml @@ -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 diff --git a/aws-ts-eks/README.md b/aws-ts-eks/README.md index bf8d1d78b..d3112cd8c 100755 --- a/aws-ts-eks/README.md +++ b/aws-ts-eks/README.md @@ -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 diff --git a/aws-ts-resources/Pulumi.yaml b/aws-ts-resources/Pulumi.yaml index 305ceaf7c..f04c33bed 100644 --- a/aws-ts-resources/Pulumi.yaml +++ b/aws-ts-resources/Pulumi.yaml @@ -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 diff --git a/aws-ts-resources/README.md b/aws-ts-resources/README.md index bbec7d296..a8313cfeb 100644 --- a/aws-ts-resources/README.md +++ b/aws-ts-resources/README.md @@ -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. diff --git a/aws-ts-ruby-on-rails/Pulumi.yaml b/aws-ts-ruby-on-rails/Pulumi.yaml index fc4596356..9a2f9993f 100644 --- a/aws-ts-ruby-on-rails/Pulumi.yaml +++ b/aws-ts-ruby-on-rails/Pulumi.yaml @@ -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 diff --git a/aws-ts-ruby-on-rails/README.md b/aws-ts-ruby-on-rails/README.md index 48a83a0d9..6d23cb41f 100644 --- a/aws-ts-ruby-on-rails/README.md +++ b/aws-ts-ruby-on-rails/README.md @@ -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. diff --git a/aws-ts-serverless-raw/Pulumi.yaml b/aws-ts-serverless-raw/Pulumi.yaml index d42088e99..6ee338a0b 100644 --- a/aws-ts-serverless-raw/Pulumi.yaml +++ b/aws-ts-serverless-raw/Pulumi.yaml @@ -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 diff --git a/aws-ts-serverless-raw/README.md b/aws-ts-serverless-raw/README.md index 124e01265..0ad73b069 100644 --- a/aws-ts-serverless-raw/README.md +++ b/aws-ts-serverless-raw/README.md @@ -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 diff --git a/aws-ts-static-website/Pulumi.yaml b/aws-ts-static-website/Pulumi.yaml index 885d112ba..ee25a7a1a 100644 --- a/aws-ts-static-website/Pulumi.yaml +++ b/aws-ts-static-website/Pulumi.yaml @@ -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) diff --git a/aws-ts-static-website/README.md b/aws-ts-static-website/README.md index d63d28672..30c8b6c5b 100644 --- a/aws-ts-static-website/README.md +++ b/aws-ts-static-website/README.md @@ -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. diff --git a/aws-ts-stepfunctions/Pulumi.yaml b/aws-ts-stepfunctions/Pulumi.yaml index db6c7acc5..77fd8cdf4 100644 --- a/aws-ts-stepfunctions/Pulumi.yaml +++ b/aws-ts-stepfunctions/Pulumi.yaml @@ -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 diff --git a/aws-ts-stepfunctions/README.md b/aws-ts-stepfunctions/README.md index 88fb1393b..1f5c09c7e 100644 --- a/aws-ts-stepfunctions/README.md +++ b/aws-ts-stepfunctions/README.md @@ -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. diff --git a/azure-js-webserver/Pulumi.yaml b/azure-js-webserver/Pulumi.yaml index 7bcb63972..c08155a4f 100755 --- a/azure-js-webserver/Pulumi.yaml +++ b/azure-js-webserver/Pulumi.yaml @@ -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 diff --git a/azure-js-webserver/README.md b/azure-js-webserver/README.md index f16126f02..862b9f0d8 100755 --- a/azure-js-webserver/README.md +++ b/azure-js-webserver/README.md @@ -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. diff --git a/azure-ts-aks-helm/Pulumi.yaml b/azure-ts-aks-helm/Pulumi.yaml index 9e12fc829..7c1aae9a3 100644 --- a/azure-ts-aks-helm/Pulumi.yaml +++ b/azure-ts-aks-helm/Pulumi.yaml @@ -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`) diff --git a/azure-ts-aks-helm/README.md b/azure-ts-aks-helm/README.md index cbc3313d5..8ca553b14 100644 --- a/azure-ts-aks-helm/README.md +++ b/azure-ts-aks-helm/README.md @@ -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, diff --git a/azure-ts-aks-mean/Pulumi.yaml b/azure-ts-aks-mean/Pulumi.yaml index 96b1e0343..508a65a8c 100644 --- a/azure-ts-aks-mean/Pulumi.yaml +++ b/azure-ts-aks-mean/Pulumi.yaml @@ -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`) diff --git a/azure-ts-aks-mean/README.md b/azure-ts-aks-mean/README.md index 54e284902..315b44bb8 100644 --- a/azure-ts-aks-mean/README.md +++ b/azure-ts-aks-mean/README.md @@ -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 diff --git a/azure-ts-appservice/Pulumi.yaml b/azure-ts-appservice/Pulumi.yaml index 99569abef..cda0ce3e7 100644 --- a/azure-ts-appservice/Pulumi.yaml +++ b/azure-ts-appservice/Pulumi.yaml @@ -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 diff --git a/azure-ts-appservice/README.md b/azure-ts-appservice/README.md index 00b9146f7..1625a85ce 100644 --- a/azure-ts-appservice/README.md +++ b/azure-ts-appservice/README.md @@ -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. diff --git a/azure-ts-functions/Pulumi.yaml b/azure-ts-functions/Pulumi.yaml index 8e4bcf9f7..d62ecf51d 100644 --- a/azure-ts-functions/Pulumi.yaml +++ b/azure-ts-functions/Pulumi.yaml @@ -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 diff --git a/azure-ts-functions/README.md b/azure-ts-functions/README.md index e8a0c8e68..efdfacb49 100644 --- a/azure-ts-functions/README.md +++ b/azure-ts-functions/README.md @@ -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. diff --git a/cloud-js-api/Pulumi.yaml b/cloud-js-api/Pulumi.yaml index b51f03f60..36ffe6d04 100644 --- a/cloud-js-api/Pulumi.yaml +++ b/cloud-js-api/Pulumi.yaml @@ -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 diff --git a/cloud-js-api/README.md b/cloud-js-api/README.md index 10f297206..4b79ae9a2 100644 --- a/cloud-js-api/README.md +++ b/cloud-js-api/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Serverless REST API on AWS A simple REST API that counts the number of times a route has been hit. For a detailed walkthrough of this example, see the article [Create a Serverless REST API](https://pulumi.io/quickstart/aws-rest-api.html). diff --git a/cloud-js-containers/Pulumi.yaml b/cloud-js-containers/Pulumi.yaml index c61fba90e..6c06d2764 100644 --- a/cloud-js-containers/Pulumi.yaml +++ b/cloud-js-containers/Pulumi.yaml @@ -1,3 +1,12 @@ name: container-quickstart description: NGINX container example runtime: nodejs +template: + description: NGINX container example + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true diff --git a/cloud-js-containers/README.md b/cloud-js-containers/README.md index b60b54881..372ff2df5 100644 --- a/cloud-js-containers/README.md +++ b/cloud-js-containers/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Easy container example Companion to the tutorial [Provision containers on AWS](https://pulumi.io/quickstart/aws-containers.html). diff --git a/cloud-js-httpserver/Pulumi.yaml b/cloud-js-httpserver/Pulumi.yaml index ffdaf979b..6309b1e28 100644 --- a/cloud-js-httpserver/Pulumi.yaml +++ b/cloud-js-httpserver/Pulumi.yaml @@ -1,3 +1,12 @@ name: cloud-js-httpserver -description: A simple HTTP server that returns the number of times a route has been hit. +description: A simple HTTP server that returns the number of times a route has been hit runtime: nodejs +template: + description: A simple HTTP server that returns the number of times a route has been hit + config: + cloud:provider: + description: The cloud provider to use + default: aws + aws:region: + description: The AWS region to deploy into + default: us-west-2 diff --git a/cloud-js-httpserver/README.md b/cloud-js-httpserver/README.md index 0b0699c48..c4ae8bcf2 100644 --- a/cloud-js-httpserver/README.md +++ b/cloud-js-httpserver/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Serverless REST API on AWS A simple REST API that counts the number of times a route has been hit. diff --git a/cloud-js-thumbnailer-machine-learning/Pulumi.yaml b/cloud-js-thumbnailer-machine-learning/Pulumi.yaml index 189c28e4c..63babe282 100755 --- a/cloud-js-thumbnailer-machine-learning/Pulumi.yaml +++ b/cloud-js-thumbnailer-machine-learning/Pulumi.yaml @@ -1,3 +1,15 @@ name: video-thumbnailer-rekognition runtime: nodejs description: A video thumbnail extractor using serverless functions, containers, and AWS Rekognition +template: + description: A video thumbnail extractor using serverless functions, containers, and AWS Rekognition + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true + cloud-aws:computeIAMRolePolicyARNs: + description: The IAM role policies to apply to compute (both Lambda and ECS) within this Pulumi program + default: arn:aws:iam::aws:policy/AWSLambdaFullAccess,arn:aws:iam::aws:policy/AmazonEC2ContainerServiceFullAccess,arn:aws:iam::aws:policy/AmazonRekognitionFullAccess diff --git a/cloud-js-thumbnailer-machine-learning/README.md b/cloud-js-thumbnailer-machine-learning/README.md index 1de24ea66..17f8b34c4 100755 --- a/cloud-js-thumbnailer-machine-learning/README.md +++ b/cloud-js-thumbnailer-machine-learning/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Video Thumbnailer with AWS Rekognition A video thumbnail extractor using serverless functions, containers, and [AWS Rekognition](https://aws.amazon.com/rekognition/). This is an extension of the sample [cloud-js-thumbnailer](../cloud-js-thumbnailer). When a new video is uploaded to S3, this sample calls AWS Rekognition to find a frame with the highest confidence for the label "cat" and extracts a jpg of this frame, by running ffmpeg in an AWS Fargate container. diff --git a/cloud-js-thumbnailer/Pulumi.yaml b/cloud-js-thumbnailer/Pulumi.yaml index fc4561acd..a5b8ee09e 100755 --- a/cloud-js-thumbnailer/Pulumi.yaml +++ b/cloud-js-thumbnailer/Pulumi.yaml @@ -1,3 +1,12 @@ name: video-thumbnailer runtime: nodejs -description: A video thumbnail extractor using serverless functions and containers. +description: A video thumbnail extractor using serverless functions and containers +template: + description: A video thumbnail extractor using serverless functions and containers + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true diff --git a/cloud-js-thumbnailer/README.md b/cloud-js-thumbnailer/README.md index a28a58748..6ddae40d8 100755 --- a/cloud-js-thumbnailer/README.md +++ b/cloud-js-thumbnailer/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Video Thumbnailer A video thumbnail extractor using serverless functions and containers. diff --git a/cloud-js-twitter-athena/Pulumi.yaml b/cloud-js-twitter-athena/Pulumi.yaml index 85fa33849..ee0bea746 100644 --- a/cloud-js-twitter-athena/Pulumi.yaml +++ b/cloud-js-twitter-athena/Pulumi.yaml @@ -1,3 +1,22 @@ name: aws-serverless-js-twitter description: Analyze tweets in AWS Athena runtime: nodejs +template: + description: Analyze tweets in AWS Athena + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + twitterAccessTokenKey: + description: Access token key + twitterAccessTokenSecret: + description: Access token secret + secret: true + twitterConsumerKey: + description: Consumer key + twitterConsumerSecret: + description: Consumer secret + secret: true + twitterQuery: + description: Search term to query for + default: Amazon Web Services diff --git a/cloud-js-twitter-athena/README.md b/cloud-js-twitter-athena/README.md index ab3540c32..983503d76 100644 --- a/cloud-js-twitter-athena/README.md +++ b/cloud-js-twitter-athena/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Twitter Search in Athena A sample project that queries Twitter every 2 minutes and stores the results in S3. The project also sets up an Athena table and query. This project demonstrates using `cloud.Timer` to run a Lambda on an interval. diff --git a/cloud-js-twitter-athena/index.js b/cloud-js-twitter-athena/index.js index ea7036336..33eaa0e16 100644 --- a/cloud-js-twitter-athena/index.js +++ b/cloud-js-twitter-athena/index.js @@ -4,7 +4,7 @@ const cloud = require("@pulumi/cloud-aws"); const bucket = new cloud.Bucket("tweet-bucket"); -let config = new pulumi.Config("aws-serverless-js-twitter"); +let config = new pulumi.Config(); let consumerKey = config.require("twitterConsumerKey"); let consumerSecret = config.require("twitterConsumerSecret"); let accessTokenKey = config.require("twitterAccessTokenKey"); diff --git a/cloud-ts-url-shortener-cache-http/Pulumi.yaml b/cloud-ts-url-shortener-cache-http/Pulumi.yaml index 473980351..6fca33e26 100644 --- a/cloud-ts-url-shortener-cache-http/Pulumi.yaml +++ b/cloud-ts-url-shortener-cache-http/Pulumi.yaml @@ -1,3 +1,21 @@ name: url-shortener-cache-http runtime: nodejs -description: URL shortener with cache and HttpServer. +description: URL shortener with cache and HttpServer +template: + description: URL shortener with cache and HttpServer + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud:provider: + description: The cloud provider + default: aws + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true + cloud-aws:functionIncludePaths: + description: Directory to include with the uploaded function code + default: www + redisPassword: + description: The Redis password + secret: true diff --git a/cloud-ts-url-shortener-cache-http/README.md b/cloud-ts-url-shortener-cache-http/README.md index 52d79fc02..df814a496 100644 --- a/cloud-ts-url-shortener-cache-http/README.md +++ b/cloud-ts-url-shortener-cache-http/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Serverless URL Shortener with Redis Cache and HttpServer A sample URL shortener SPA that uses the high-level `cloud.Table` and `cloud.HttpServer` components. The example shows to combine serverless functions along with containers. This shows that you can create your own `cloud.*`-like diff --git a/cloud-ts-url-shortener-cache-http/config.ts b/cloud-ts-url-shortener-cache-http/config.ts index 2961ef56c..d9279c9cb 100644 --- a/cloud-ts-url-shortener-cache-http/config.ts +++ b/cloud-ts-url-shortener-cache-http/config.ts @@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi"; -let config = new pulumi.Config("url-shortener-cache"); +let config = new pulumi.Config(); // Get the Redis password from config export let redisPassword = config.require("redisPassword"); diff --git a/cloud-ts-url-shortener-cache/Pulumi.yaml b/cloud-ts-url-shortener-cache/Pulumi.yaml index 4c5d0bbb1..2a4bdbec3 100644 --- a/cloud-ts-url-shortener-cache/Pulumi.yaml +++ b/cloud-ts-url-shortener-cache/Pulumi.yaml @@ -1,3 +1,18 @@ name: url-shortener-cache runtime: nodejs description: URL shortener with cache +template: + description: URL shortener with cache + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud:provider: + description: The cloud provider + default: aws + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true + redisPassword: + description: The Redis password + secret: true diff --git a/cloud-ts-url-shortener-cache/README.md b/cloud-ts-url-shortener-cache/README.md index 0bc7febea..9f1087e45 100644 --- a/cloud-ts-url-shortener-cache/README.md +++ b/cloud-ts-url-shortener-cache/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Serverless URL Shortener with Redis Cache A sample URL shortener SPA that uses the high-level `cloud.Table` and `cloud.API` components. The example shows to combine serverless functions along with containers. This shows that you can create your own `cloud.*`-like diff --git a/cloud-ts-url-shortener-cache/config.ts b/cloud-ts-url-shortener-cache/config.ts index 2961ef56c..d9279c9cb 100644 --- a/cloud-ts-url-shortener-cache/config.ts +++ b/cloud-ts-url-shortener-cache/config.ts @@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi"; -let config = new pulumi.Config("url-shortener-cache"); +let config = new pulumi.Config(); // Get the Redis password from config export let redisPassword = config.require("redisPassword"); diff --git a/cloud-ts-url-shortener/Pulumi.yaml b/cloud-ts-url-shortener/Pulumi.yaml index efe445540..06a900c52 100644 --- a/cloud-ts-url-shortener/Pulumi.yaml +++ b/cloud-ts-url-shortener/Pulumi.yaml @@ -1,3 +1,9 @@ name: url-shortener runtime: nodejs description: URL shortener sample +template: + description: URL shortener sample + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 diff --git a/cloud-ts-url-shortener/README.md b/cloud-ts-url-shortener/README.md index fadd9c5f7..327d080a3 100644 --- a/cloud-ts-url-shortener/README.md +++ b/cloud-ts-url-shortener/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Serverless URL Shortener This example demonstrates a complete URL shortener web application using high-level `cloud.Table` and diff --git a/cloud-ts-voting-app/Pulumi.yaml b/cloud-ts-voting-app/Pulumi.yaml index b1d00d345..49da8ff5a 100644 --- a/cloud-ts-voting-app/Pulumi.yaml +++ b/cloud-ts-voting-app/Pulumi.yaml @@ -1,3 +1,18 @@ name: voting-app runtime: nodejs description: Voting app that uses containers +template: + description: Voting app that uses containers + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + cloud:provider: + description: The cloud provider + default: aws + cloud-aws:useFargate: + description: Whether to use Fargate-based container compute + default: true + redisPassword: + description: The Redis password + secret: true diff --git a/cloud-ts-voting-app/README.md b/cloud-ts-voting-app/README.md index 14973c3fe..34ad6bcf7 100644 --- a/cloud-ts-voting-app/README.md +++ b/cloud-ts-voting-app/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Voting app with two containers A simple voting app that uses Redis for a data store and a Python Flask app for the frontend. The example has been ported from https://github.com/Azure-Samples/azure-voting-app-redis. @@ -80,7 +82,7 @@ Please confirm that this is what you'd like to do by typing ("testing"): testing At the start of the program, the following lines retrieve the value for the Redis password by reading a [configuration value](https://pulumi.io/reference/config.html). This is the same value that was set above with the command `pulumi config set redisPassword `: ```typescript -let config = new pulumi.Config("voting-app"); +let config = new pulumi.Config(); let redisPassword = config.require("redisPassword"); ``` diff --git a/cloud-ts-voting-app/index.ts b/cloud-ts-voting-app/index.ts index 0a104ba68..7232c396e 100644 --- a/cloud-ts-voting-app/index.ts +++ b/cloud-ts-voting-app/index.ts @@ -4,7 +4,7 @@ import * as pulumi from "@pulumi/pulumi"; import * as cloud from "@pulumi/cloud"; // Get the password to use for Redis from config. -let config = new pulumi.Config("voting-app"); +let config = new pulumi.Config(); let redisPassword = config.require("redisPassword"); let redisPort = 6379; diff --git a/gcp-js-webserver/Pulumi.yaml b/gcp-js-webserver/Pulumi.yaml index 7efdc0066..81abfc013 100644 --- a/gcp-js-webserver/Pulumi.yaml +++ b/gcp-js-webserver/Pulumi.yaml @@ -1,3 +1,11 @@ name: webserver-gcp runtime: nodejs -description: Basic example of an Google Cloud web server accessible over HTTP. +description: Basic example of an Google Cloud web server accessible over HTTP +template: + description: Basic example of an Google Cloud web server accessible over HTTP + config: + gcp:project: + description: The Google Cloud project to deploy into + gcp:project: + description: The Google Cloud zone + default: us-central1-a diff --git a/gcp-js-webserver/README.md b/gcp-js-webserver/README.md index da7bb0480..ebaec0855 100644 --- a/gcp-js-webserver/README.md +++ b/gcp-js-webserver/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Pulumi web server (GCP) Starting point for building the Pulumi web server sample in Google Cloud. diff --git a/gcp-ts-functions/Pulumi.yaml b/gcp-ts-functions/Pulumi.yaml index 9f59d0443..ff8f958d6 100644 --- a/gcp-ts-functions/Pulumi.yaml +++ b/gcp-ts-functions/Pulumi.yaml @@ -1,2 +1,10 @@ name: gcp-functions runtime: nodejs +description: GCP Functions example +template: + description: GCP Functions example + config: + gcp:project: + description: The Google Cloud project to deploy into + gcp:region: + description: The Google Cloud region diff --git a/gcp-ts-functions/README.md b/gcp-ts-functions/README.md index c9e44fbd1..276f13105 100644 --- a/gcp-ts-functions/README.md +++ b/gcp-ts-functions/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # GCP Functions An example Pulumi component that deploys a TypeScript function to Google Cloud Functions. diff --git a/gcp-ts-gke/Pulumi.yaml b/gcp-ts-gke/Pulumi.yaml index d5e39b3ee..5b8bfc0ba 100644 --- a/gcp-ts-gke/Pulumi.yaml +++ b/gcp-ts-gke/Pulumi.yaml @@ -1,3 +1,13 @@ name: gcp-ts-gke description: A Google Kubernetes Engine (GKE) cluster, with canary deployment runtime: nodejs +template: + description: A Google Kubernetes Engine (GKE) cluster, with canary deployment + config: + gcp:project: + description: The Google Cloud project to deploy into + gcp:zone: + description: The Google Cloud zone + password: + description: Your cluster password + secret: true diff --git a/gcp-ts-gke/README.md b/gcp-ts-gke/README.md index fb2e11804..72ff71107 100644 --- a/gcp-ts-gke/README.md +++ b/gcp-ts-gke/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Google Kubernetes Engine (GKE) with a Canary Deployment This example provisions a [Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine/) cluster, using diff --git a/gcp-ts-k8s-ruby-on-rails-postgresql/README.md b/gcp-ts-k8s-ruby-on-rails-postgresql/README.md index c000e678b..33efad700 100644 --- a/gcp-ts-k8s-ruby-on-rails-postgresql/README.md +++ b/gcp-ts-k8s-ruby-on-rails-postgresql/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/tree/master/gcp-ts-k8s-ruby-on-rails-postgresql/infra) + # Containerized Ruby on Rails App Delivery on GCP This example is a full end to end example of delivering a containerized Ruby on Rails application. It diff --git a/gcp-ts-k8s-ruby-on-rails-postgresql/infra/Pulumi.yaml b/gcp-ts-k8s-ruby-on-rails-postgresql/infra/Pulumi.yaml index d2e133e8e..ecb427921 100644 --- a/gcp-ts-k8s-ruby-on-rails-postgresql/infra/Pulumi.yaml +++ b/gcp-ts-k8s-ruby-on-rails-postgresql/infra/Pulumi.yaml @@ -1,3 +1,22 @@ name: gcp-rails runtime: nodejs description: A containerized Ruby on Rails app using managed Kubernetes and PostgreSQL +template: + description: A containerized Ruby on Rails app using managed Kubernetes and PostgreSQL + config: + gcp:project: + description: The Google Cloud project to deploy into + gcp:zone: + description: The Google Cloud zone + default: us-west1-a + clusterPassword: + description: Your new cluster password + secret: true + dbPassword: + description: Your new DB password + secret: true + dockerUsername: + description: Your Docker Hub username + dockerPassword: + description: Your Docker Hub password + secret: true diff --git a/kubernetes-ts-configmap-rollout/Pulumi.yaml b/kubernetes-ts-configmap-rollout/Pulumi.yaml index 0f7243fb0..32eec369c 100644 --- a/kubernetes-ts-configmap-rollout/Pulumi.yaml +++ b/kubernetes-ts-configmap-rollout/Pulumi.yaml @@ -1,3 +1,9 @@ name: configmap-rollout description: A Deployment that mounts a ConfigMap; updating the data in the ConfigMap triggers a rollout of the Deployment runtime: nodejs +template: + description: A Deployment that mounts a ConfigMap; updating the data in the ConfigMap triggers a rollout of the Deployment + config: + isMinikube: + description: Whether you are deploying to minikube + default: true diff --git a/kubernetes-ts-configmap-rollout/README.md b/kubernetes-ts-configmap-rollout/README.md index c10aaa4e1..04c4a2457 100644 --- a/kubernetes-ts-configmap-rollout/README.md +++ b/kubernetes-ts-configmap-rollout/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes: Triggering a rollout of an app by changing ConfigMap data Uses nginx to reverse-proxy traffic to `pulumi.github.io`. The nginx configuration is contained in diff --git a/kubernetes-ts-exposed-deployment/Pulumi.yaml b/kubernetes-ts-exposed-deployment/Pulumi.yaml index 0d5f6b437..ddd01ee65 100644 --- a/kubernetes-ts-exposed-deployment/Pulumi.yaml +++ b/kubernetes-ts-exposed-deployment/Pulumi.yaml @@ -1,3 +1,9 @@ name: exposed-deployment 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: + isMinikube: + description: Whether you are deploying to minikube + default: true diff --git a/kubernetes-ts-exposed-deployment/README.md b/kubernetes-ts-exposed-deployment/README.md index 867722028..da61c2067 100644 --- a/kubernetes-ts-exposed-deployment/README.md +++ b/kubernetes-ts-exposed-deployment/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes: Exposing a Deployment with a public IP address Deploys `nginx` to a Kubernetes cluster, and publicly exposes it to the Internet with an IP address, diff --git a/kubernetes-ts-guestbook/README.md b/kubernetes-ts-guestbook/README.md index 579aeff3f..3aabd295b 100644 --- a/kubernetes-ts-guestbook/README.md +++ b/kubernetes-ts-guestbook/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/tree/master/kubernetes-ts-guestbook/components) + # Kubernetes Guestbook (Two Ways) A port of the standard [Kubernetes Guestbook](https://kubernetes.io/docs/tutorials/stateless-application/guestbook/) diff --git a/kubernetes-ts-guestbook/components/Pulumi.yaml b/kubernetes-ts-guestbook/components/Pulumi.yaml index 0ab9f1f83..763a3c3b6 100644 --- a/kubernetes-ts-guestbook/components/Pulumi.yaml +++ b/kubernetes-ts-guestbook/components/Pulumi.yaml @@ -1,4 +1,9 @@ name: guestbook-easy runtime: nodejs description: Kubernetes Guestbook example based on https://kubernetes.io/docs/tutorials/stateless-application/guestbook/ - +template: + description: Kubernetes Guestbook example based on https://kubernetes.io/docs/tutorials/stateless-application/guestbook/ + config: + isMinikube: + description: Whether you are deploying to minikube + default: true diff --git a/kubernetes-ts-guestbook/components/README.md b/kubernetes-ts-guestbook/components/README.md index c8fa3a895..1cddc37ef 100644 --- a/kubernetes-ts-guestbook/components/README.md +++ b/kubernetes-ts-guestbook/components/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes Guestbook (with Components) A version of the [Kubernetes Guestbook](https://kubernetes.io/docs/tutorials/stateless-application/guestbook/) diff --git a/kubernetes-ts-guestbook/simple/Pulumi.yaml b/kubernetes-ts-guestbook/simple/Pulumi.yaml index bbf566474..bc0d1e4de 100644 --- a/kubernetes-ts-guestbook/simple/Pulumi.yaml +++ b/kubernetes-ts-guestbook/simple/Pulumi.yaml @@ -1,4 +1,9 @@ name: guestbook runtime: nodejs description: Kubernetes Guestbook example based on https://kubernetes.io/docs/tutorials/stateless-application/guestbook/ - +template: + description: Kubernetes Guestbook example based on https://kubernetes.io/docs/tutorials/stateless-application/guestbook/ + config: + isMinikube: + description: Whether you are deploying to minikube + default: true diff --git a/kubernetes-ts-guestbook/simple/README.md b/kubernetes-ts-guestbook/simple/README.md index 4f31386ce..76d4462bf 100644 --- a/kubernetes-ts-guestbook/simple/README.md +++ b/kubernetes-ts-guestbook/simple/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes Guestbook (Simple Variant) A version of the [Kubernetes Guestbook](https://kubernetes.io/docs/tutorials/stateless-application/guestbook/) diff --git a/kubernetes-ts-helm-wordpress/Pulumi.yaml b/kubernetes-ts-helm-wordpress/Pulumi.yaml index 98027e691..6d7638bdc 100644 --- a/kubernetes-ts-helm-wordpress/Pulumi.yaml +++ b/kubernetes-ts-helm-wordpress/Pulumi.yaml @@ -1,3 +1,5 @@ name: wordpress description: A minimal installation of the latest version of the Wordpress Helm chart runtime: nodejs +template: + description: A minimal installation of the latest version of the Wordpress Helm chart diff --git a/kubernetes-ts-helm-wordpress/README.md b/kubernetes-ts-helm-wordpress/README.md index 166bb59ce..94b968180 100644 --- a/kubernetes-ts-helm-wordpress/README.md +++ b/kubernetes-ts-helm-wordpress/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes: Deploying the Wordpress Helm chart Uses the Helm API of `@pulumi/kubernetes` to deploy `v2.1.3` of the Wordpress Helm Chart to a diff --git a/kubernetes-ts-jenkins/Pulumi.yaml b/kubernetes-ts-jenkins/Pulumi.yaml index 9f7d75d09..d7c8bc6bd 100644 --- a/kubernetes-ts-jenkins/Pulumi.yaml +++ b/kubernetes-ts-jenkins/Pulumi.yaml @@ -1,3 +1,11 @@ name: kubernetes-ts-jenkins description: Jenkins deployment on Kubernetes runtime: nodejs +template: + description: Jenkins deployment on Kubernetes + config: + username: + description: Your desired username for the Jenkins instance + password: + description: Your desired password for the Jenkins instance + secret: true diff --git a/kubernetes-ts-jenkins/README.md b/kubernetes-ts-jenkins/README.md index be7c6a720..b4b937932 100644 --- a/kubernetes-ts-jenkins/README.md +++ b/kubernetes-ts-jenkins/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes Jenkins This example deploys a container running the Jenkins continuous integration system onto a running diff --git a/kubernetes-ts-nginx/Pulumi.yaml b/kubernetes-ts-nginx/Pulumi.yaml index 20a2ce7e7..df0da0184 100644 --- a/kubernetes-ts-nginx/Pulumi.yaml +++ b/kubernetes-ts-nginx/Pulumi.yaml @@ -1,3 +1,6 @@ name: k8s-nginx runtime: nodejs -description: Example of a Kubernetes Stateless Application Deployment, using Nginx. +description: Example of a Kubernetes Stateless Application Deployment, using Nginx +template: + description: Example of a Kubernetes Stateless Application Deployment, using Nginx + diff --git a/kubernetes-ts-nginx/README.md b/kubernetes-ts-nginx/README.md index 7ae0a9223..507b400a4 100644 --- a/kubernetes-ts-nginx/README.md +++ b/kubernetes-ts-nginx/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Run a Stateless Application Using a Deployment A version of the [Kubernetes Stateless Application Deployment]( diff --git a/kubernetes-ts-s3-rollout/Pulumi.yaml b/kubernetes-ts-s3-rollout/Pulumi.yaml index e0520cc94..123558658 100644 --- a/kubernetes-ts-s3-rollout/Pulumi.yaml +++ b/kubernetes-ts-s3-rollout/Pulumi.yaml @@ -1,3 +1,5 @@ name: data-from-s3 description: A simple Deployment obtaining data from S3 runtime: nodejs +template: + description: A simple Deployment obtaining data from S3 diff --git a/kubernetes-ts-s3-rollout/README.md b/kubernetes-ts-s3-rollout/README.md index 8b2f19fac..44270b588 100644 --- a/kubernetes-ts-s3-rollout/README.md +++ b/kubernetes-ts-s3-rollout/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes: Triggering a rollout of an app by changing data in S3 This example is similar in principle to the [`ConfigMap`-based rollout example][rollout], except a diff --git a/kubernetes-ts-sock-shop/Pulumi.yaml b/kubernetes-ts-sock-shop/Pulumi.yaml index ecac5da5b..ef304eccc 100644 --- a/kubernetes-ts-sock-shop/Pulumi.yaml +++ b/kubernetes-ts-sock-shop/Pulumi.yaml @@ -1,4 +1,5 @@ name: sock-shop runtime: nodejs description: The standard Weaveworks Sock Shop demo based on https://github.com/microservices-demo/microservices-demo - +template: + description: The standard Weaveworks Sock Shop demo based on https://github.com/microservices-demo/microservices-demo diff --git a/kubernetes-ts-sock-shop/README.md b/kubernetes-ts-sock-shop/README.md index ba4e0b3d2..069990a90 100644 --- a/kubernetes-ts-sock-shop/README.md +++ b/kubernetes-ts-sock-shop/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes Sock Shop A version of the standard [Sock Shop microservices reference app](https://github.com/microservices-demo/microservices-demo) app using diff --git a/kubernetes-ts-staged-rollout-with-prometheus/Pulumi.yaml b/kubernetes-ts-staged-rollout-with-prometheus/Pulumi.yaml index 772f85fa7..6fd02ceb4 100644 --- a/kubernetes-ts-staged-rollout-with-prometheus/Pulumi.yaml +++ b/kubernetes-ts-staged-rollout-with-prometheus/Pulumi.yaml @@ -1,3 +1,5 @@ name: staged-rollout description: Staged application rollout gated by Prometheus checks runtime: nodejs +template: + description: Staged application rollout gated by Prometheus checks diff --git a/kubernetes-ts-staged-rollout-with-prometheus/README.md b/kubernetes-ts-staged-rollout-with-prometheus/README.md index ceb32df8e..2daf61845 100644 --- a/kubernetes-ts-staged-rollout-with-prometheus/README.md +++ b/kubernetes-ts-staged-rollout-with-prometheus/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Kubernetes: Staged application rollout gated by Prometheus checks Demonstrates how to create a staged rollout (from 3-replica canary -> 10-replica staging), gated by diff --git a/misc/test/examples_test.go b/misc/test/examples_test.go index 1daeeb8ed..0d36766df 100644 --- a/misc/test/examples_test.go +++ b/misc/test/examples_test.go @@ -180,10 +180,10 @@ func TestExamples(t *testing.T) { SkipBuild: true, Config: map[string]string{ // use us-west-2 to assure fargate - "aws:region": "us-west-2", - "url-shortener-cache:redisPassword": "s3cr7Password", - "cloud:provider": "aws", - "cloud-aws:useFargate": "true", + "aws:region": "us-west-2", + "redisPassword": "s3cr7Password", + "cloud:provider": "aws", + "cloud-aws:useFargate": "true", }, // TODO: This test is not returning a valid payload see issue: https://github.com/pulumi/examples/issues/155 // ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) { diff --git a/twilio-ts-component/Pulumi.yaml b/twilio-ts-component/Pulumi.yaml index 7e63f2493..1fa814488 100644 --- a/twilio-ts-component/Pulumi.yaml +++ b/twilio-ts-component/Pulumi.yaml @@ -1,3 +1,16 @@ name: twilio-ts-component description: A small example that builds a Pulumi component for Twilio Programable SMS runtime: nodejs +template: + description: A small example that builds a Pulumi component for Twilio Programable SMS + config: + aws:region: + description: The AWS region to deploy into + default: us-west-2 + twilio:accountSid: + description: Your account sid from https://www.twilio.com/console + twilio:authToken: + description: Your auth token from https://www.twilio.com/console + secret: true + phoneNumberSid: + description: The phone number sid from https://www.twilio.com/console/phone-numbers/ diff --git a/twilio-ts-component/README.md b/twilio-ts-component/README.md index fe92029d9..2aade1ee2 100644 --- a/twilio-ts-component/README.md +++ b/twilio-ts-component/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) + # Twilio SMS Handler A sample for interacting with Twilio SMS. This sample includes a custom Component Resource that abstracts the tedium of interacting with API Gateway and parsing incoming messages from Twilo. This sample requires you to have a Twilio number which can handle SMS. diff --git a/twilio-ts-component/index.ts b/twilio-ts-component/index.ts index 33fb28805..613095761 100644 --- a/twilio-ts-component/index.ts +++ b/twilio-ts-component/index.ts @@ -1,7 +1,7 @@ import * as pulumi from "@pulumi/pulumi"; import * as twilo from "./twilio" -const config = new pulumi.Config(pulumi.getProject()); +const config = new pulumi.Config(); const phoneNumberSid = config.require("phoneNumberSid"); const handler = new twilo.IncomingPhoneNumber("twilio-example", {