`apigateway` `lambda` `invocation` Code In the co...
# aws
b
apigateway
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?
Copy code
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
Copy code
Error creating API Gateway Deployment: BadRequestException: No integration defined for method