Created
June 18, 2018 04:43
-
-
Save lukehoban/62edfbf3f6bdd5dad91cef7ef03262b7 to your computer and use it in GitHub Desktop.
A simple Pulumi program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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