Remove /cloud from readme. (#3010)

This commit is contained in:
CyrusNajmabadi 2019-07-31 20:16:04 -07:00 committed by GitHub
parent 653501758d
commit 0ee75d2201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,16 +45,23 @@ for (let i = 0; i < 3; i++) {
Or a simple serverless timer that archives Hacker News every day at 8:30AM:
```typescript
const cloud = require("@pulumi/cloud");
const snapshots = new cloud.Table("snapshots");
cloud.timer.daily("daily-yc-snapshot", { hourUTC: 8, minuteUTC: 30 }, () => {
const req = require("https").get("https://news.ycombinator.com", res => {
const aws = require("@pulumi/aws");
const snapshots = new aws.dynamodb.Table("snapshots", {
attributes: [{ name: "id", type: "S", }],
hashKey: "id", billingMode: "PAY_PER_REQUEST",
});
aws.cloudwatch.onSchedule("daily-yc-snapshot", "cron(30 8 * * ? *)", () => {
require("https").get("https://news.ycombinator.com", res => {
let content = "";
res.setEncoding("utf8");
res.on("data", chunk => content += chunk);
res.on("end", () => snapshots.insert({ date: Date.now(), content }));
});
req.end();
res.on("end", () => new aws.sdk.DynamoDB.DocumentClient().put({
TableName: snapshots.name.get(),
Item: { date: Date.now(), content },
}).promise());
}).end();
});
```
@ -82,7 +89,7 @@ repo contains the `pulumi` CLI, language SDKs, and core Pulumi engine, and indiv
* **[Community Slack](https://slack.pulumi.com)**: join us over at our community Slack channel. Any and all
discussion or questions are welcome.
* **[Roadmap](https://github.com/pulumi/pulumi/wiki/Roadmap)**: check out what's on the roadmap for the Pulumi
* **[Roadmap](https://github.com/pulumi/pulumi/wiki/Roadmap)**: check out what's on the roadmap for the Pulumi
project over the coming months.
## <a name="getting-started"></a>Getting Started