1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
"aws_elasticloadbalancing" is used when creating a classic load balancer.
Therefore, you need to use "aws_elasticloadbalancingV2" when creating ALB or NLB.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancing-readme.html
The aws-cdk-lib/aws-elasticloadbalancing package provides constructs for configuring classic load balancers.
Use "aws_apigatewayV2" when creating Websocket and HTTP APIs, and "aws_apigateway" when creating REST APIs.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2-readme.html
This module supports features under API Gateway v2 that lets users set up Websocket and HTTP APIs. REST APIs can be created using the aws-cdk-lib/aws-apigateway module.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 24 days ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 8 months ago