-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(apigatewayv2): support for mock integration type #15008
Comments
I'd like to take a stab at this one. This will be my first issue so I'm working through The scope outlined in the title conflicts a bit with that of the description. I think I will proceed with only implementing the mock integration type for this issue, and we can open other issues for the other integration types as needed Also curious as to why this was given the indicator for |
resolves #15008 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
resolves aws#15008 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Currently in the @aws-cdk/aws-apigatewayv2 library only one WebSocketIntegrationType is supported. The AWS_PROXY integration type. The @aws-cdk/aws-apigatewayv2-integrations also only supports the LambdaWebSocketIntegration class to help connect a particular route to a Lambda function.
However when I create a Websocket API in the AWS console, there is support for HTTP, Mock, AWS Service and VPC Link.
I have created a simple Websocket API that does not require the client to communicate to the server. Only the server to communicate to the client. Therefore my $default route just has a simple MOCK integration, which works for my scenario.
Can we please add the other integrations type into this library? I am happy to assist if this is not already in progress. Just let me know.
Use Case
The reason for this requirement is because I'm using API Gateway to create a web socket server that talks to both a Twitch Bot and a React.js application which is hosted on my local machine and runs inside of OBS. Basically this is a requirement for a Twitch app I am creating. I could try another option (EC2 / ECS), AWS AppSync or event IOT, but in my research I believe using API Gateway and Lambda is the cheapest option.
Proposed Solution
Not much to propose. Just make it work similar to how the UI works now.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: