Skip to content

Commit

Permalink
Update all examples to 2.7.2 typescript and 0.11.0 packages (pulumi#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindydonna authored Mar 31, 2018
1 parent cc46fcd commit b2c2a7d
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 39 deletions.
4 changes: 3 additions & 1 deletion alexa-fortune/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
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:
Expand Down
11 changes: 5 additions & 6 deletions alexa-fortune/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
"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"
}
}
2 changes: 1 addition & 1 deletion serverless-raw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "tsc"
},
"devDependencies": {
"typescript": "^2.5.3"
"typescript": "^2.7.2"
},
"dependencies": {
"@pulumi/aws": "^0.11.0",
Expand Down
4 changes: 0 additions & 4 deletions url-shortener-with-cache/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
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
4 changes: 2 additions & 2 deletions url-shortener-with-cache/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 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");

Expand Down
3 changes: 2 additions & 1 deletion url-shortener-with-cache/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// 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";

Expand Down
6 changes: 3 additions & 3 deletions url-shortener-with-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"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"
}
}
2 changes: 1 addition & 1 deletion url-shortener/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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
Expand Down
6 changes: 3 additions & 3 deletions url-shortener/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"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"
}
}
4 changes: 0 additions & 4 deletions webserver-component/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
name: webserver
runtime: nodejs
description: Basic example of an AWS web server accessible over HTTP.
stacks:
testing:
config:
aws:config:region: us-west-2
10 changes: 1 addition & 9 deletions webserver-component/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"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"
Expand Down
2 changes: 1 addition & 1 deletion webserver-zones/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
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.
3 changes: 2 additions & 1 deletion webserver-zones/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 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";
Expand All @@ -14,4 +16,3 @@ export let serverUrls = (async () => {

return urls;
})();

2 changes: 1 addition & 1 deletion webserver-zones/linuxAmi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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
Expand Down
2 changes: 1 addition & 1 deletion webserver-zones/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "tsc"
},
"devDependencies": {
"typescript": "^2.5.3",
"typescript": "^2.7.2",
"@types/node": "^8.0.26"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions webserver-zones/webserver.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.

import * as aws from "@pulumi/aws";
import { getLinuxAMI } from "./linuxAmi";

Expand Down

0 comments on commit b2c2a7d

Please sign in to comment.