Update all examples to 2.7.2 typescript and 0.11.0 packages
MODIFY
alexa-fortune/index.ts
alexa-fortune/index.ts
-import * as pulumi from "pulumi";
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
+
+import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// First, create a config object and read the following user-provided values:

MODIFY
alexa-fortune/package.json
alexa-fortune/package.json
"devDependencies": {
"@types/alexa-sdk": "^1.0.11",
"@types/node": "^8.0.27",
- "typescript": "^2.1.4"
+ "typescript": "^2.7.2"
},
"dependencies": {
- "alexa-sdk": "^1.0.25"
- },
- "peerDependencies": {
- "@pulumi/aws": "*",
- "@pulumi/cloud": "*"
+ "alexa-sdk": "^1.0.25",
+ "@pulumi/pulumi": "^0.11.0",
+ "@pulumi/cloud": "^0.11.0",
+ "@pulumi/cloud-aws": "^0.11.0"
}
}

MODIFY
serverless-raw/package.json
serverless-raw/package.json
"build": "tsc"
},
"devDependencies": {
- "typescript": "^2.5.3"
+ "typescript": "^2.7.2"
},
"dependencies": {
"@pulumi/aws": "^0.11.0",

MODIFY
url-shortener-with-cache/Pulumi.yaml
url-shortener-with-cache/Pulumi.yaml
name: url-shortener
runtime: nodejs
description: URL shortener sample
-config:
- url-shortener:config:redisPassword: SecretPassw0rd
- aws:config:region: us-west-2
- cloud-aws:config:ecsAutoCluster: true

MODIFY
url-shortener-with-cache/config.ts
url-shortener-with-cache/config.ts
-// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
-import * as pulumi from "pulumi";
+import * as pulumi from "@pulumi/pulumi";
let config = new pulumi.Config("url-shortener:config");

MODIFY
url-shortener-with-cache/index.ts
url-shortener-with-cache/index.ts
-// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
+import * as pulumi from "@pulumi/pulumi";
import * as cloud from "@pulumi/cloud";
import * as cache from "./cache";

MODIFY
url-shortener-with-cache/package.json
url-shortener-with-cache/package.json
},
"devDependencies": {
"@types/node": "^8.0.27",
- "typescript": "^2.1.4"
+ "typescript": "^2.7.2"
},
"dependencies": {
"redis": "^2.8.0",
- "@pulumi/cloud": "^0.10.0",
- "@pulumi/cloud-aws": "^0.10.0"
+ "@pulumi/cloud": "^0.11.0",
+ "@pulumi/cloud-aws": "^0.11.0"
}
}

MODIFY
url-shortener/index.ts
url-shortener/index.ts
-// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
import * as cloud from "@pulumi/cloud";
import { Output } from "@pulumi/pulumi"; // for output property

MODIFY
url-shortener/package.json
url-shortener/package.json
},
"devDependencies": {
"@types/node": "^8.0.27",
- "typescript": "^2.1.4"
+ "typescript": "^2.7.2"
},
"dependencies": {
- "@pulumi/cloud": "^0.10.0",
- "@pulumi/cloud-aws": "^0.10.0"
+ "@pulumi/cloud": "^0.11.0",
+ "@pulumi/cloud-aws": "^0.11.0"
}
}

MODIFY
webserver-component/Pulumi.yaml
webserver-component/Pulumi.yaml
name: webserver
runtime: nodejs
description: Basic example of an AWS web server accessible over HTTP.
-stacks:
- testing:
- config:
- aws:config:region: us-west-2

MODIFY
webserver-component/package.json
webserver-component/package.json
{
"name": "webserver",
"version": "0.1.0",
- "main": "bin/index.js",
- "typings": "bin/index.d.ts",
- "scripts": {
- "build": "tsc"
- },
- "devDependencies": {
- "typescript": "^2.5.3",
- "@types/node": "^8.0.26"
- },
+ "main": "index.js",
"dependencies": {
"@pulumi/pulumi": "^0.11.0",
"@pulumi/aws": "^0.11.0"

MODIFY
webserver-zones/index.ts
webserver-zones/index.ts
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
+
import * as aws from "@pulumi/aws";
import * as webserver from "./webserver"; // use the new custom component
import * as pulumi from "@pulumi/pulumi";
@@ -14,4 +16,3 @@ export let serverUrls = (async () => {
return urls;
})();
-

MODIFY
webserver-zones/linuxAmi.ts
webserver-zones/linuxAmi.ts
-// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
// This file defines some maps that correspond to the recommended AWS Marketplace values:
// http://docs.aws.amazon.com/servicecatalog/latest/adminguide/catalogs_marketplace-products.html

MODIFY
webserver-zones/package.json
webserver-zones/package.json
"build": "tsc"
},
"devDependencies": {
- "typescript": "^2.5.3",
+ "typescript": "^2.7.2",
"@types/node": "^8.0.26"
},
"dependencies": {

MODIFY
webserver-zones/webserver.ts
webserver-zones/webserver.ts
+// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
+
import * as aws from "@pulumi/aws";
import { getLinuxAMI } from "./linuxAmi";

Update all examples to 2.7.2 typescript and 0.11.0 packages (#31)