brash-flag-57291
06/15/2021, 8:32 PMconst lambdaFunction = new aws.lambda.CallbackFunction("foo-function", {
callback: handler,
runtime: "nodejs14.x",
})
const apis = await aws.apigatewayv2.getApis({ name: "my-existing-api" })
const apiId = apis.ids[0]
const api = await aws.apigatewayv2.getApi({ apiId })
const integration = new aws.apigatewayv2.Integration("foo-integration", {
apiId: api.id,
integrationType: "AWS_PROXY",
integrationMethod: "POST",
integrationUri: lambdaFunction.invokeArn,
})
const route = new aws.apigatewayv2.Route("foo-route", {
apiId: api.id,
routeKey: "POST /foo",
target: pulumi.interpolate`integrations/${integration.id}`,
})
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