conan-aws-lambda
Version:
AWS Lambda plugin for Conan: The Deployer.
16 lines (12 loc) • 366 B
JavaScript
import conan from "./conan.config.js";
const helloWorld = conan.lambda("HelloWorld");
helloWorld
.description("A simple lambda that replies with 'Hello, World!'")
.filePath("lambdas/helloWorld.js")
.role("MyLambdaRole");
conan.deploy(error => {
if (error) { throw error; }
helloWorld.invoke({}, error, response => {
console.log(response.payload);
});
});