(aws-cdk-lib/aws-ecs-patterns): (use exist VPC for ApplicationLoadBalancedFargateService error) #26660
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When I tried use an exist VPC to create ECS cluster and ApplicationLoadBalancedFargateService, I got an error:
Error: There are no 'Public' subnet groups in this VPC. Available types: Deprecated_Private_NAT,Private,Deprecated_Private
The VPC has 2 public subnet and 2 private subnet.
Code below:
Expected Behavior
Create ApplicationLoadBalancedFargateService in an exist VPC.
Current Behavior
Can not create ApplicationLoadBalancedFargateService in an exist VPC.
Reproduction Steps
NA
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.90.0
Framework Version
No response
Node.js Version
v18.12.1
OS
Amazon Linux2
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: