sparse-intern-71089
02/24/2021, 2:38 PMgentle-monitor-55086
02/24/2021, 2:42 PMexport async function myLambda(
event: awsx.apigateway.Request): Promise<awsx.apigateway.Response> {
new aws.lambda.CallbackFunction(name,
{
policies: [aws.iam.ManagedPolicy.AWSLambdaBasicExecutionRole, aws.iam.ManagedPolicy.AWSLambdaDynamoDBExecutionRole],
callback: f
},)
my gateway
aws.apigateway.RestApi
Then i go on to define a custome resource which inside does a
resource
method(dependsOn:[lambda, resource])
integration(dependsOn:[lambda,resource,method]
and finally a deployment depending on my custom resource for the route.gentle-monitor-55086
02/24/2021, 4:51 PMaws.lambda.Permission
for the api to invoke the lambda.
almost no tutorials on using lambda.callback included this