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
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by