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
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