proud-tiger-5743
09/25/2018, 10:37 PMserverless
or aws
to write a lambda function inline, in JS? The goal is to bind it to Kinesis, but I'd like to not have to create a separate folder, if possible. Can you write regular JS here?
let lambda = new aws.lambda.Function("mylambda", {
runtime: foo,
code: CAN CODE GO HERE?,
timeout: 300,
handler: foo,
role: role.arn,
environment: {
variables: {
"COUNTER_TABLE": counterTable.name
}
},
}, { dependsOn: [fullAccess] });
white-balloon-205
new aws.serverless.Function
and then pass its .function
property as a aws.lambda.Function
object.
We're actually actively working on making this more discoverable and simpler. /cc @lemon-spoon-91807.lemon-spoon-91807
09/25/2018, 11:59 PMnew aws.lambda.CallbackFunction(name, { func: (ev, context) => { } })
too!proud-tiger-5743
09/26/2018, 12:04 AMlemon-spoon-91807
09/26/2018, 12:05 AMproud-tiger-5743
09/26/2018, 12:05 AMlemon-spoon-91807
09/26/2018, 12:06 AMwhite-balloon-205
lemon-spoon-91807
09/26/2018, 12:07 AMproud-tiger-5743
09/26/2018, 12:08 AMlemon-spoon-91807
09/26/2018, 12:08 AM