microscopic-florist-85263
09/23/2018, 4:35 AMwhite-balloon-205
microscopic-florist-85263
09/24/2018, 3:05 AMconst cloud = require("@pulumi/cloud-aws");
const api = new cloud.API("aws-hellolambda-js");
api.get("/js", (req, res) => {
res.status(200).json("Hi from Javascript lambda");
});
exports.endpointJs = api.publish().url;
Would I be able to import aws-sdk and do an cloudwatch call within the api.get
callback function?
Or do I need to put lambda specific code somewhere else?white-balloon-205
microscopic-florist-85263
09/24/2018, 7:13 PM