Skip to content

Instantly share code, notes, and snippets.

@lukehoban
Created June 18, 2018 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukehoban/62edfbf3f6bdd5dad91cef7ef03262b7 to your computer and use it in GitHub Desktop.
Save lukehoban/62edfbf3f6bdd5dad91cef7ef03262b7 to your computer and use it in GitHub Desktop.
A simple Pulumi program
const cloud = require("@pulumi/cloud-aws");
const endpoint = new cloud.API("hello");
endpoint.static("/", "www");
endpoint.get("/source", (req, res) => res.json({name: "AWS"}));
exports.url = endpoint.publish().url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment