magnificent-accountant-19074
05/11/2020, 9:57 AMany
but it looks like when api invokes lambda only allowed method is POST
is that so? I'm getting error from AWS api
Unable to put integration on 'ANY' for resource at path '/': Integrations of type 'AWS_PROXY' currently only supports Lambda function and Firehose stream invocations. here is my SO question
https://stackoverflow.com/questions/61724909/pulumi-aws-proxy-currently-only-supports-lambda-functionfuture-barista-68134
05/11/2020, 2:26 PMreturn new API(name, {
routes: [
{
path: "/",
target: {
uri: "arn:aws:apigateway:eu-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-central-1:051069080387:function:deploy-test-4-lambda/invocations",
type: "aws_proxy",
},
],
stageName: name + "-stage"
}, { provider });
getFunction
and use the invokeArn
property from the result to input into the API gateway integration route. See: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/lambda/#GetFunctionResult-invokeArnmagnificent-accountant-19074
05/11/2020, 3:10 PMfuture-barista-68134
05/11/2020, 3:41 PMmagnificent-accountant-19074
05/11/2020, 3:42 PM