You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the migration of HTTP API into the new aws-apigatewayv2 module, it is unclear to me how to use the module to set up a private integration via VPCLink with an alb/nlb using the new aws-apigatewayv2 module when adding routes to the api.
The example shown in Issue 8066 doesn't fit the new library.
import*asapiv2from'@aws-cdk/aws-apigatewayv2';import*asapigwfrom'@aws-cdk/aws-apigateway';constapi=newapiv2.HttpApi(this,"testingApi",{apiName: "testingApi",})// declare API routes integrationsconstlink=newapigw.VpcLink(this,'link',{targets: [nlb]});constintegration=newapigw.HttpIntegration("",{httpMethod: apiv2.HttpMethod.ANY,options: {connectionType: apigw.ConnectionType.VPC_LINK,vpcLink: link},proxy: false})api.addRoutes({integration: integration,methods: [apiv2.HttpMethod.GET,apiv2.HttpMethod.DELETE,apiv2.HttpMethod.POST,apiv2.HttpMethod.OPTIONS,apiv2.HttpMethod.PUT],path: "/somePath"})// -> throws ...Type 'HttpIntegration' is not assignable to type 'IHttpRouteIntegration'... error
The addRoutes() call requires type 'IHttpRouteIntegration', but I can't figure out how to use the HTTP Proxy Integration to set up a private integration for an alb/nlb linked to routes.
Proposed Solution
A simple code example with just one stack containing the new HTTP API and a linked alb/nlb via private integration using the aws-apigatewayv2 would be perfect :)
Environment
CDK CLI Version: 1.61.0
OS: all
Language: TypeScript
Other information
The text was updated successfully, but these errors were encountered:
🚀 Feature Request
General Information
Description
Since the migration of HTTP API into the new aws-apigatewayv2 module, it is unclear to me how to use the module to set up a private integration via VPCLink with an alb/nlb using the new aws-apigatewayv2 module when adding routes to the api.
The example shown in Issue 8066 doesn't fit the new library.
The
addRoutes()
call requires type 'IHttpRouteIntegration', but I can't figure out how to use the HTTP Proxy Integration to set up a private integration for an alb/nlb linked to routes.Proposed Solution
A simple code example with just one stack containing the new HTTP API and a linked alb/nlb via private integration using the
aws-apigatewayv2 would be perfect :)
Environment
Other information
The text was updated successfully, but these errors were encountered: