aws-cdk-examples icon indicating copy to clipboard operation
aws-cdk-examples copied to clipboard

How do you use APIGatewayV2 HTTP API with CDK to save 70% cost on API?

Open bionicles opened this issue 5 years ago • 7 comments
trafficstars

:rocket: Feature Request

Description

We want to use the new HTTP API with AWS Lambda because it’s simpler, lower latency, and faster, but it’s not documented

Proposed Solution

A construct to deploy a simple lambda with http api (node js)

bionicles avatar Dec 27 '19 20:12 bionicles

Docs: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html

bionicles avatar Dec 27 '19 20:12 bionicles

announced a few weeks ago: https://aws.amazon.com/blogs/compute/announcing-http-apis-for-amazon-api-gateway/

bionicles avatar Dec 27 '19 20:12 bionicles

APIGatewayV2 was just split into its own package today

https://github.com/aws/aws-cdk/commit/d58667e473c1e07ac8f2f073b3a541569a014e01

bionicles avatar Jan 16 '20 19:01 bionicles

Because this is an experimental module, you would most likely need to use the underlying L1 Constructs to build an API Gateway HTTP API. Given that the feature itself is still in Beta preview and may experience breaking changes, I would doubt many people would be willing to do the work to build solid Construct on top of it until it goes GA.

rhboyd avatar Jan 16 '20 21:01 rhboyd

Hey @bionicles, Richard is correct in that a specific L1 construct implementation doesnt make a lot of sense for an example for the moment. That said, I think once there is an L2 for ApiGatewayV2, this is a perfect example to add.

With that in mind, Im going to delay this for execution once the L2 is completed

NGL321 avatar Mar 04 '20 02:03 NGL321

Yet there is not an example? :cry:

aang7 avatar Sep 11 '20 20:09 aang7

can someone provide example for "custom lambda authorizer with http api"

ghost avatar Jan 18 '21 09:01 ghost

CDK API Docs has example https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2-readme.html

kaiz-io avatar Dec 27 '24 22:12 kaiz-io

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Dec 27 '24 22:12 github-actions[bot]