Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API resource to allow using POST http-method when using aws_proxy with lambda #23

Open
danfhernandez opened this issue May 11, 2020 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@danfhernandez
Copy link

When integrating API Gateway with lambda using aws_proxy type, only the ANY method type is supported and it requires POST to work.

Culprit: https://github.com/pulumi/pulumi-awsx/blob/6e41506897a3d7bf3985beb8ecdc596638047699/nodejs/awsx/apigateway/api.ts#L219.

Code to reproduce below:

const lambda = new aws.lambda.CallbackFunction("mylambda", {
    callback: async e => {
      console.log("Lambda called...")
    }
  }
);

let endpoint = new awsx.apigateway.API("example", {
    routes: [{
        path: "/",
        target: {
            uri: lambda.invokeArn,
            type: "aws_proxy"
        },
    }],
})
@danielrbradley danielrbradley transferred this issue from pulumi/pulumi-awsx May 19, 2022
@guineveresaenger guineveresaenger added the kind/enhancement Improvements or new features label May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants