bitter-france-47214
08/12/2022, 12:00 PMapigateway
lambda
invocation
Code
In the code, I am using pulumi.interpolate
and signup.invokeArn
to setup the apigateway integration with the lambda defined further up. Though, I am getting an Error (see below) and don't know why. Can anybody help?
const signup = new aws.lambda.Function("sign-up", { ... });
const api = new aws.apigateway.RestApi("freedev-api", {
body: JSON.stringify({
...
paths: {
...
"x-amazon-apigateway-integration": {
httpMethod: "POST",
type: "AWS_PROXY",
uri: pulumi.interpolate `arn:aws:apigateway:eu-central-1:lambda:path/2015-03-31/functions/${signup.invokeArn}/invocations`,
},
Error
Error creating API Gateway Deployment: BadRequestException: No integration defined for method